32,204 Topics

Member Avatar for
Member Avatar for RoOose

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 …

Member Avatar for Ezzaral
0
85
Member Avatar for aan@ucsc

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 …

Member Avatar for aan@ucsc
0
92
Member Avatar for ceyesuma
Member Avatar for ceyesuma
0
100
Member Avatar for mtbutt

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 …

Member Avatar for jasimp
0
134
Member Avatar for arik

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) …

0
49
Member Avatar for g_loughnan

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 …

Member Avatar for g_loughnan
0
145
Member Avatar for majestic0110

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 …

Member Avatar for majestic0110
0
218
Member Avatar for rajatC

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 …

Member Avatar for rajatC
0
139
Member Avatar for ideal

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

Member Avatar for Ezzaral
0
103
Member Avatar for hidash_in

[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 …

Member Avatar for peter_budo
0
655
Member Avatar for degamer106

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 …

Member Avatar for javaAddict
0
115
Member Avatar for argopal
Member Avatar for majestic0110
0
78
Member Avatar for azalia

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 …

Member Avatar for masijade
0
92
Member Avatar for azalia

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 …

0
81
Member Avatar for welbyobeng

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 …

Member Avatar for javaAddict
0
252
Member Avatar for ceyesuma
Member Avatar for masijade
0
104
Member Avatar for Shiv_Aptech

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............

Member Avatar for majestic0110
0
39
Member Avatar for java_programmer

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?

Member Avatar for Ezzaral
0
243
Member Avatar for Kob0724

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?

Member Avatar for Ezzaral
0
729
Member Avatar for deepu28

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

Member Avatar for masijade
0
65
Member Avatar for degamer106

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 …

Member Avatar for masijade
0
183
Member Avatar for Mongooseman

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 …

Member Avatar for masijade
0
230
Member Avatar for boyz

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????

Member Avatar for darkagn
0
87
Member Avatar for meme123

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) { …

Member Avatar for satya5321
0
246
Member Avatar for boyz

In a function can we pass void string(null) if the method is overloaded???

Member Avatar for satya5321
0
65
Member Avatar for Labby77

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?

Member Avatar for satya5321
0
88
Member Avatar for brightstar

[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] :)

Member Avatar for satya5321
0
82
Member Avatar for curt22

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 …

Member Avatar for satya5321
0
87
Member Avatar for RoOose

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){ …

Member Avatar for RoOose
0
131
Member Avatar for Mr.UNOwen

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 …

Member Avatar for Ezzaral
0
77

The End.