32,199 Topics
| |
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 … | |
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 ............ | |
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 … | |
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 … | |
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 … | |
[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(":"); … |
The End.