32,199 Topics

Member Avatar for
Member Avatar for funtoosh

I'm implementing a Timer for different cities using GregorianCalendar class of java.I got a Null Pointer Exception in the following code in ---- target.timeElapsed(this) line.After a lot of practices,I don't got it out.Plzz help me to sort it out.. Here's my code---------- import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; …

Member Avatar for funtoosh
0
224
Member Avatar for bjeff71

I am receiving a successful build msg, but I cannot get my program to run correctly. Hereis the msg. followed by the program:[CODE]init: deps-jar: compile: run: java.lang.NoClassDefFoundError: Inventory5_5 Caused by: java.lang.ClassNotFoundException: Inventory5_5 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread …

Member Avatar for Manishbpl
0
159
Member Avatar for vasu_atri

hi friends...i have to generate a front end using applets,swing and AWT...it is report generation front end...on left side i have some objects to drag on to the center..the center part contains the selected type of report...when i selects a type of report,on left side i should get the options …

0
42
Member Avatar for sr0867

I am replacing a single quote by double quote in a String I am getting an error Method replaceAll(java.lang.String, java.lang.String) not found in class java.lang.String. my jdk version is 1.2.2 Can anyone help me so that i can use the same function without changing my java version

Member Avatar for sr0867
0
110
Member Avatar for ze0001ng

Hello, skillers, I have an applet that needs to use image files to create Image. However, when loaded by web-browser, the applet can not find the image files but it works perfectly fine by using appletviewer. Here is the code for defining the applet: [CODE] <applet archive="applet.jar" width="600" height="630" code="board.Player0.class"> …

0
46
Member Avatar for NycNessyness

Hello guys. I wanted to know how I can go about writing what is selected in a Jcombobox to a datafile. This is an example of what I'm trying to do but when I compile i get an error. How can i correct the line "output.writeUTF(number.getSelectedIndex());" [code=java] String[] numbers = …

Member Avatar for masijade
0
98
Member Avatar for veledrom

Hi, I am trying to install Oracle 9i but when it comes to Java Runtime Environment, it asks me path for it. I have JRE installed in my Computer. What else do i need to proceed this installation? Thanks

Member Avatar for veledrom
0
434
Member Avatar for FaMu

hi, I have this method [code=java] public void record() { Scanner input = new Scanner( System.in ); int sid; for ( int counter = 0; counter < length; counter++ ) { System.out.println("Student " + (counter+1) + " Record"); System.out.println("****************"); System.out.print("Enter SID: "); a[ counter ] = input.nextInt(); sid=a[counter]; if (isUnique(sid)) …

Member Avatar for FaMu
0
144
Member Avatar for Bouras

sorry figured out i put my 1st post on wrong section ;s:S... put on java script.. heres a copy/paste.. Hey... I present myself.. Youssef, 17 years old and i'm currently on my second year of the IB Program ... Computer IB HL i took. As some of you might know …

Member Avatar for Ezzaral
0
116
Member Avatar for myusernotyours

Hi ya all. Am creating an application that should display a Floating dock window like the windows taskbar. It should never be obscured by other windows. Now, The JDIC project has developed an API for this that is in incubation but problem is it only works for linux and my …

0
76
Member Avatar for himanjim

Hi, I'm a beginner in JSP...I've installed Sun Java System Application Server 9.1 ... I wanna run jsp code just to display "[B]Hello World[/B]" but can't find out where to copy the [B]helloworld.jsp[/B] code (I mean in which folder of Sun directory) to access it using [B][url]http://localhost:4848/helloworld.jsp[/url][/B]........Please help me out......

Member Avatar for gafoorsani
0
106
Member Avatar for Will Gresham

I have upgraded to Firefox 2.0.0.14 on openSuse 10.3 and then downloaded Java 6u6 and installed that, created a symbolic link to java plugin for firefox but whenever I try to load a Java applet it will not show anything, not even the jigsaw piece saying Java is not installed. …

0
196
Member Avatar for Vukinagauna

Write a GUI program to compute the amount of a certificate of deposit on maturity. The sample data follows: Amount dep: $6000.00 Years: 15 Interest: 7.75

Member Avatar for Chaster
0
116
Member Avatar for java3d

Hello! I am new here, I am posting as I can not find any help on sun.com java forums for my problem! Here what I posted: Hello all! I am intending to do a simple thing: a quick bird like made with 3 boxes: 2 for the wings, one for …

Member Avatar for mastergreg
0
146
Member Avatar for bjeff71

I am having problems with my program. I am altering it to show the GUI which should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, the value of the inventory …

Member Avatar for jwenting
0
109
Member Avatar for twilightwolf90

I am creating a properties JFrame for use in my GUI, and I wanted to save all of the data inputted into the frame into a file called config.properties. The Poperties class already has several convienent methods to save, load, and get properties, but it stores all the data in …

Member Avatar for twilightwolf90
0
181
Member Avatar for darklich13

Can somebody please help my try to understand how to add an equals method to my Person, Purchase, and Customer class? I am very new to Java and I can't figure out how to call the equals test from main and have it reference to the other classes. Any help …

Member Avatar for Ezzaral
0
381
Member Avatar for nelson13

Can some one help me??? I'm doing a basic Java course and need help with this code I'm trying to get this line to work but keep coming back with a "'.class' expected" I have tried different combinations but nothing is working for me. public void paintComponent (Graphics page) { …

Member Avatar for nelson13
0
671
Member Avatar for CelestialDog

Hi guys, i'm in the process of learning Java and so far i'm really enjoying it. However i've hit a small problem. I have two seperate classes, one class creates the swing user interface and the other handles the connection to an irc server. Here is the User interface class: …

Member Avatar for CelestialDog
0
174
Member Avatar for mayur sahay

hi.,.. i am working on aproject which codes a image into acompressed format and then sends it over a network an decodes it at the client side.. The coding technique i have to use is RADON TRANSFORM. now i f any one can help me with this problem please do …

Member Avatar for mayur sahay
0
73
Member Avatar for mayur sahay

hi everyone In a image processing software i have to convert a matrix of pixel values 2D.into the image .can any one help me out with this..this part has been the most frustrating part of my project ...

Member Avatar for masijade
0
88
Member Avatar for ramp12

I am trying to write a piece of code that will search an existing array of usernames and see if the name entered by a user (which will be in a prompt box) is in that array of user names and if so then ask them for their password. I'm …

Member Avatar for javaAddict
0
94
Member Avatar for scorpionz

Hi This is Scorpionz... Is there anyone have any idea ...Regarding Work Flow System in Java Web Application.... Any Response Will be highly appreciated with great Thanks Regards ScorpionZ

Member Avatar for scorpionz
0
155
Member Avatar for kimbostun

i want Use the 2 text files boynames.txt and girlnames.txt Prompt the user for boy or girl and then for a letter from the alphabet. Open either boynames.txt or girlnames.txt and read each line in – when the name starts with the letter that the user specified then write the …

Member Avatar for Compton11
0
174
Member Avatar for TheWhite

Hi again. I'm trying to get Java to recognize the action of pressing both mouse buttons in the same time. I did some research and I found that Event.getModifiersEx() can help me do what I want, but I can't figure out how to implement it the correct way. Event.BUTTON1_DOWN_MASK is …

Member Avatar for Ezzaral
0
387
Member Avatar for TheWhite

Hi again. I'm trying to recreate the digital timer in Minesweeper: Top right ----- [url]http://www.uberreview.com/wp-content/uploads/506x363-minesweeper.jpg[/url] 000 -> 002 -> ... -> 009 -> 010 -> etc... I couldn't think of an easier way to do it except to create an Icon for each number and match it to it's corresponding …

Member Avatar for TheWhite
0
97
Member Avatar for emmy128

Hi, I am using adobe acrobat 8, and im trying to get a text box on page 2 to be automatically filled with the same value that's selected from a combo box on page 1. How can i program this? I am new to Java, and i need help with …

Member Avatar for peter_budo
0
110
Member Avatar for a_iyer20

Hello, I have a requirement to fetch data from a database and store into another database. More explanation goes as follows: I have a web application deployed on an application server. The JDBC connection fetches data from a oracle database. Now I have a need to fetch data from a …

Member Avatar for jwenting
0
101
Member Avatar for NycNessyness

Currently having a problem with adding data so that if someone selects something like an add button, it keeps adding the data, like a person's name, age and grade. Then when they select Enter, all the data they added will display in a data file. The problem I'm having is …

Member Avatar for NycNessyness
0
153
Member Avatar for wujianwei
Member Avatar for peter_budo
0
85

The End.