32,199 Topics

Member Avatar for
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
217
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
653
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
251
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
Member Avatar for majestic0110

Just out of curiosity, which IDE is used by people (primaily). I myself use Blue J. This IDE was introduced to myself on my bachelors in Software design. Just wondered what you all use ............

Member Avatar for majestic0110
0
142
Member Avatar for pizzazzman2000

hi.............. I'm very new to java, viz. servlets,jsp,jdbc, etc My trainer has assigned me a project: Online Recruitment System My trainer is putting us under tremendous pressure to complete the project in a very short span of time ( 4 days, to be precise) Is there anyone who has done …

Member Avatar for jwenting
0
136
Member Avatar for renars1985

Hi, I created JAVA prorgamm. It works like this: I can enter some book parameters (author, name, year) and programm will write data in file and also will display data in console. Code is below in bold. Compile code below and you will understand how programm works. However I have …

0
59
Member Avatar for nedimavci

Program 1 A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month. Create a Payroll program that can do the following 1. Enter the Salesperson’s name, employee number and basic monthly salary. 2. Enter the number of …

Member Avatar for jwenting
-2
132
Member Avatar for mizcomscie

[code=java] import java.io.*; public class ACMICPCContestScoring { public static void main(String[] args) throws IOException { BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); BufferedReader br = new BufferedReader(new FileReader (" ")); String s = br.readLine(); String[] array1 = s.split(" "); int numberOfTeams = Integer.parseInt(array1[0]); int numberOfProblems = Integer.parseInt(array1[1]); String[] timeStarted = array1[2].split(":"); …

Member Avatar for majestic0110
0
127

The End.