32,199 Topics
| |
**Bold Text Here** hey any one can help me sort out my problem.. when i enter the customer id then in tabular format i want its all detail. how to do.. like in textBox i enter customer id as 1 then pressed ok button then in new frame or in … | |
Hi people, I recently learn about 'Saving objects'. In order to practice it a little bit, I started making a problem. However I got stuck by a strange syntax error. It says that I do not have the right amount of braces. But I do have the right amount of … | |
Okay, so I've been working on a program where you add planets to a solar system and try to get them to orbit a sun. What I need, and have been having great troubles with figuring out, is a 'guide line' to show you where your planet is going to … | |
Howdy Folks; I have decided to begin working on a project, that I personally feel will cover alot of areas, and introduce me to new topics. This is not for a client, or a homework assignment. This is strictly to help me 'learn as I go' and review some old … | |
Chaps, today I was reading about exception handling and although the book explains them in sufficient details there is something that I really struggle to understand. Ok, here's the example they analyze: // Fig. 11.2: DivideByZeroWithExceptionHandling.java // Handling ArithmeticExceptions and InputMismatchExceptions. import java.util.InputMismatchException; import java.util.Scanner; public class DivideByZeroWithExceptionHandling { // … | |
Hi I just started to learn Java and when i was reading through the tutorial for building a simple GUI. It says that parseDouble method is not localizable. I don't understand what it is refering to as this method is not localizable. Please explain to me.THANKS!!!!!!!!!!!! :D Code int tempFahr … | |
Hello good day. I am designing two JTables; one on top of the other. The first one has nine columns. And the second one has 8 columns (The first column spans the first columns of the topmost table). What I wish to do now is to make the bottom table … | |
I am trying to download a zip file from a server using the following code but it gives me a tmp.zip of size 1kB. What is the mistake in this program? try { URL url = new URL("http://www.nseindia.com/content/historical/DERIVATIVES/2013/JUN/fo18JUN2013bhav.csv.zip"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); InputStream in = connection.getInputStream(); FileOutputStream out … | |
| A one liner definition of obfuscation from wikipedia: >In [software development](http://en.wikipedia.org/wiki/Software_development), obfuscation is the deliberate act of creating obfuscated code, i.e. [source](http://en.wikipedia.org/wiki/Source_code) or [machine code](http://en.wikipedia.org/wiki/Machine_code) that is difficult for humans to understand. Obfuscated JavaScript code is a widely used technique to hide initial functionality of a given script. There is … |
Hello, I am using Netbeans with JDK7. I was wondering how can I check which compiler is Netbeans is using to compile the program? Thanks | |
Hello Friends!! I need some help here.... i build a website called E-Maintenance, now i need to make a form that user can choose date and the system will insert into database mysql after the user click submit, im searching on the internet and i found this Javascript calender, this … | |
[CODE]import java.util.* public class ArrayMinMax { public static void main(String[] args) { Integer[] numbers={8,2,6,7,1,4,9,5,3}; int min=(int)Collections.min(Arrays.asList(numbers)); int max=(int)Collections.max(Arrays.asList(numbers)); System.out.println("Min number: "+min); System.out.println("Max number: "+max); } }[/CODE] Hi guys, me again. Okay so I use this code in a single array if i want to know what the minimum and maximum … | |
The idea is to load an array of objects onto a JComboBox. I have a Class Tournament, which contains an array of Teams. I have serialized an intance 'a' of the Tournament class into a .dat file. try{ ObjectOutputStream oTourn = new ObjectOutputStream(new FileOutputStream(jTextField1.getText()+".dat")); oTourn.writeObject(a); } catch(Exception e){ JOptionPane.showMessageDialog(this, e.toString(), … | |
can someone please tell me how much time will take to learn java , i have already learnt c++ and looking forward to learning java | |
Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise: "Create 3 small classes unrelated by … | |
I am trying to modify my shell sort algorithm to use Hibbard's increments rather than n/2. I know that Hibbard's increments are 2k - 1, but I can't figure out how to incorporate that into my algorithm. Any suggestions to help me move forward with this? I feel like I … | |
How to write a java program that runs in background but still can detect any key press from the keyboard (with the corresponding keycode) | |
Hi guys, I am developing a software that has to transform a dataset in a graph database. So far I have developed the dataset import. Basically, I open the file and afterward it is displayed in the tab1 and stored in a matrix of Objects. Now I don't have any … | |
I have a JTable with two columns in my JFrame. The number of rows this table has should equal a number input in a JForm in a previous JFrame. I cannot find any rowCount mutator function (Using Netbeans), and upon further inspection, the rowCount property in the GUI design view … | |
need help with design to separate model and gui code? les say i have 3 classes. Main.java BoxGui.java BoxModel.java public classBoxModel { BoxGui bg = new BoxGui(); public void moveBox(){ int x = bg.getX(); bg.setX(x+1); } } public class BoxGui { int x,y,width,height; public void paint(Graphics g){ g.drawRect(x, y, width, … | |
I want to add employee name from database to combobox and i am using the coding while(rs.next()) combobox.addItem(rs.getString("Emp_name")); but the combobox appears consisting elements as Item1,Item2,Item3...and so on how I can add employees names in combobox | |
HI I have been building a game applet. I have coded as far as getting rectangles to move on a timer and put integers into the rectangles. I am not familar with how to click the rectangles and I also want to get the different numbers going through an ArrayList … | |
Hey guys. I have a simple question about my android app. I know what you are thinking " this dumbass just posted this in the wrong thread". But I did it for a reason. The error that I have is related to java...not android. (I will star every line of … | |
Hi everyone, I'm dealing with both JMenu and JPopupMenu in a program. Looks good except when I switch from JMenu to JPopupMenu by right click, it doesnt work. How? Many thanks. | |
Hi all, I want to restrict users directly accessing the html and pdf files(as URL) from my application server. When an user requests for this content, it should ask for login credentials. Please share your ideas for this. My application has LoginFilter and so I added <url-pattern>*.pdf</url-pattern> in the web.xml. … | |
Hi Everyone, I have a project that requires to use mouse right click. Upon right click, it should display a list of categories(drop down). How Do I do I use right click? Many thanks, Petra | |
hi friends, I'm Mathew doing my 2nd year MCA in The American College, madurai. now its fourth semester going on. In this semester i have to do projects in Java. i know java better upto swings. Could you please suggest me some topics and its details. you can send it … | |
Hi, i making a program where I would read data from text files and store them in tables in myslq. In my program I would create the table with the fields and in these fields I would insert the values from the text file. My issue is that i don't … | |
In java this is how a DerivedClass can implement it's BaseClass's constructor. public DerivedClass extends BaseClass { //some properties public DerivedClass(param) { super(param); } } I have learnt C-Sharp's *base()* does the similar thing, but when I replace *super(param)* with *base(param)*, it does not gives what I'm expecting. How can … | |
I have a JSP file and I want to get the value of the input text and send it to a java class. How can I do it? <form name="boxSettingForm" action="/ScanToBox/ScanJobServlet" method="post" > <div style="height: 417px; width: 790px; background-color: #ffffff; margin-left: 0px; margin-top: 0px;"> <div style="height: 116px; "> <br><input id="boxName" … |
The End.