32,204 Topics
| |
Hi.... I've wrote a code about arrange the names in descending order. But, I'm not sure it's right or wrong. Can u help me, please? The code is: import javax.swing.JOptionPane; public class Names { public static void main(String[] argus){ int i = 0; int n =10 ; int j; String … | |
Can anyone help me to do this if a jTextField has text like this 1A2B89C0 array[0]=1; array[1]=10;//A should convert to 10 ,B to 11,c to 12,........ array[2]=2; array[3]=11;//B to 11 array[4]=8; array[5]=9; array[6]=12;//C to 12 array[7]=0; actualy this part is needed for a program which is convert a number in … | |
word.doc attached. please tell me if it isn't attached thanks | |
Hi Friend's... I can't make this program...Plz help me to make this program.. Make a Driver class TUNES.In this class Creates a CD Collection Object and adds some CD's to it Prints reports on the status of the collection.and then make a class CDCollection and write a constructor that creates … | |
I have made application using JBuilder 6 (JRE 1.3) Operating system WIN XP (JRE 1.3) When I run application in JBuilder evrything works fine. Now I made executable .JAR file using JBuilder (wizard -> archive builder -> application) When I executed the .JAR file the background color on JButton (javax.swing) … | |
Hi there, I have this null pointer exception error in my code which I can't fix. I'm just trying to create an interface which can display an image, text and 12 buttons all at once. I've checked out loads of other threads, but I can't see where the Null entry … | |
HI all am trying to construct this hybrid of java and mysql. the data comes from a mysql database and I want it to display in the gui. this I have achieved thus far. However I have buttons that sort by surname, first name, ID tag etc....I need event handlers … | |
i m new to java...i made my first applet...a simple applet to showing "THIS IS MY FIRST APPLET"..but it's not working...i m not able to see it in mozilla firefox and IE7... plz help.. the code is here... [B]tryApplet.java[/B] [code=java] import java.awt.Font; import java.awt.Color; import java.awt.Graphics; public class tryApplet extends … | |
sweet hello to all, someone tell me that how to capture the Active(current) window using java. I have captured the whole screen(desktop) and wrote jpeg file of captured pixels. Now, i want to capture currently open program's window(e.g. My Computer, MS Word etc). waiting... best wishes Waqas Dar | |
[B]hi all, i have to get the number of pages for a pdf document using java. i checked in java pdf api library but i have not get the correct idea. can anybody help for my work pls. if u have code for that na pls send me. advance thanks … | |
I'm stuck trying to figure out how to update the text field after I click on the button in the GUI. The number of roaches is supposed to be updated each time I click, but I can't seem to find the right tool for the job in the APIs. RoachPopulation.java … | |
How to find memory leaks in java? And preventive methods advisable? | |
Hey Everyone, This is my first post. Recently, I have been working on an instant messenger program in java. I have created the networking part of the client, and I have almost finished the server side. I know the program works and I am allowed to send messages, but now … | |
Hi All, I have a new assignment which I have worked most of the way out, except I have one issue. When I sort the large text file it does not print out all the information at that moment, I have to hit enter a couple of times before all … | |
Ok am new in java programming and I am trying to conduct a simple class called Area. If anyone know anything about java you can help me. I am writing a class that has three overloaded static methods for calculating the area of the following geometric shapes. circles rectangles cylinders … | |
Can any one help me find some code to start building an OutlookPanel? | |
Hi EveryBody,I m a newComer in this Site.....Very glads to join this Site.......It will give me opportunity to solve JAVA programmings easilly.....I have a problem in Java Exceptions and Threads.....Please help me on this Topic that make me Sure...... Again Thanks to all of U as joining me............ | |
Hi, I am new in java. I have a question for which I am not getting suitable answer. My question is that why vector is called synchronised? Can anybody please clarify me why vector is synchronised? | |
So for some reason I can't seem to set the background color of a JTabbedPane. This code: [code] metaTabPane = new JTabbedPane(); metaTabPane.setOpaque(true); metaTabPane.setBackground(Color.green); [/code] does nothing. The JTabbedPane stays the same grayish-blue default color. What am I doing wrong? | |
hi i am a fresher i want to learn j2me. just i started with hello world program but am getting an error that is java.lang.classNotFoundException. so please someone help me to come out from this error. regards Deepu G | |
This is a relatively simple program but for some reason, I can't compile it. I'm pretty sure the code is correct and working. My compiler keeps saying that it cannot find a constructor matching a HourlyWorker constructor when I instantiate a HourlyWorker object. I've checked and rechecked the code (in … | |
The Java book I'm using ([i]Java Programming[/i] by Joyce Farrel, Thompson Course Technology), when explaining how to add components to an applet, uses the following code: [code=Java]import javax.swing.*; import java.awt.*; public class JHello extends JApplet { Container con = getContentPane(); JLabel greeting = new JLabel("Hello. Who are you?"); public void … | |
we know that a class will compile if no catch along with try but have finally but what happens if there is an arithmetic exception in the try block???? | |
Hi, I'm getting the error msg, "non-static can't be referenced from a static context", on my Readfile... what is the simplest way of fixing it? Thanks. import java.util.Date; import java.util.Calendar; import java.text.SimpleDateFormat; import javax.mail.*; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; public class Bulkloademail { public static void main(String[] args) { … | |
In a function can we pass void string(null) if the method is overloaded??? | |
Hi, is there any website have a lots of sample code and eg. to download. I'm quite new to JAVA cos no sticky threads for this. & also how can I do a simple buttongroup with captions? | |
[B][U]Good day to all programmers there!!!!,[/U][/B] [COLOR="Red"][U]please help me to my assignment, I need it tommorow! I want a program that [/U][/COLOR] [COLOR="Green"][B]1.input the name of student, 2.input his/her grades 3. display its grade rate 4. display if it is perfect, pased or failed[/B][/COLOR] :) | |
Hello everyone, I was wondering what a good book to start learning Java would be. I know a little about programming like variables, function, etc. , but not object-oriented stuff. I was thinking of buying Learning Java, 3rd Edition, but I'm not sure. What do you think is the best … | |
Hi.... I'm a new member . I've a code , but there is a part I didn't undestand it. Can u help me to undestand it? I am writing the part I didn't understand it by red color: [code] import javax.swing.JOptionPane; public class SortingArray { public static void main(String[] argus){ … | |
Hello I need help creating a program in Java. Basically I need to use ClassLoader to load classes at runtime that implements a particular interface (the name and location will be known). From what I see on the api, there's a loadclass method that gives you a Class object, but … |
The End.