35,618 Topics
![]() | |
my program doesn't display the shapes after the button is clicked .. can someone help me with this .. import java.awt.*; import javax.swing.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class DrawShapes extends JFrame { public DrawShapes() { JPanel panel = new JPanel(); final JButton circle = new JButton("Circle"); JButton square = … | |
Hi Can someone please help me figure out how to find the parent of a node? Here is the closest I got to something that works. It finds the parent and prints it out "parent: x" but it doesn't send the parent node back ? Any help would be appreciated. … | |
Hi I am trying to implement the Fast Fourier Transform. I have some code which I got online and slightly modified. I have a class GrabPixels which extracts a pixel array from an image, the class FFT implements the transform. My problem is I don't think the methods in the … | |
Hello folks, I am trying to run a simple java application which connects to Oracle 9i and gets and displays the resultset. I am connecting to oracle using sun.jdbc.odbc.jdbcodbc bridge driver. [B]**The application was running fine 4 days ago**[/B]. I m using Netbeans 6.0. Two days ago I installed Netbeans … | |
I am designing a site with a javascript login that leads you to a flash actionscript site. What language would I be looking at for a database? Mysql? I can use any feedback. | |
I have to wrtie a program for class that asks the user to input to cards ex: 7c(7 of clubs) and then compare the two cards at the end to see which one is the greater card. This is the code I have so far and for some reason it … | |
Im getting a pretty out there error that I have no explanation for when I run my program, here is what Im getting. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:65) at apple.awt.CToolkit$4.run(CToolkit.java:1259) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Exception in thread "AWT-EventQueue-0" … | |
Hey guys, I want to writing a program that clicks. I want to be able to specify the area it clicks. Anyone know how to do this? I googled a bunch and couldn't find anything even close to this. | |
Hello, Can anyone please help me... I need to create a GUI program that holds product inventory. I have five errors and I can't figure out what they are... I need a second look from someone... Thanks in advance! [code] import javax.swing.*; import java.awt.*; import java.text.NumberFormat; import java.util.Locale; public class … | |
Hi, I have a JSP form (test.jsp) for my users to upload a file, and another JSP file (testHelper.jsp) to work in the background, both JSP's are under the same directory ([url]http://www.domain.com:8080/AppName/)[/url]. After work is done, I send users back to the form (with parameters to determine which status message … | |
hi, I have an application that paints a rectangle(car) and moves it across the screen using a timer when a start button is clicked. The problem i have is i want to generate(paint) cars randomly at specific intervals (using a timer) when the cars disappear from the screen/street. Now i … | |
Hi, I'm new to jsp I'm writing a java code of simple chat application that consists of an applet on client side and a java server page on server side. My applet is fine but the jsp code shows unusual errors and in most of the cases the browser simply … | |
Help me implement these in playlistImpl The user needs to be able to: * Create playlists * Delete playlists * Edit playlists * play playlists com.xxx.iopackage.inputstreams.mp3player.playlist.PlayList com.xxx.iopackage.inputstreams.mp3player.playlist.PlayListImpl [U]PlayList.java[/U] [CODE=java] package com.xxx.iopackage.inputstreams.mp3player.playlist; import java.io.File; import java.util.LinkedHashSet; /** * Models a playlist of MP3. A Playlist is a group of mp3s which … | |
I didnt know where to post this but i hope this is the right place. I was wondering how a code in c++ can be used in or with java. i.e if I decided to write a code in C++ that performs processing and i want to write another code … | |
Hey everyone, let me get straight to the point: For my program I developed two custom classes that extend jPanel and have some text fields and check boxes in them. (public class ServicePanel extends java.awt.Panel) Now I've encountered three problems. 1. When add those panels to the GUI Palette and … | |
I am doing online examination project, in that my requirement is to set one question in one page,the maximum time limit for the question is 60 seconds, count down. pb is if the user click refresh and back button the time get reset to 60 seconds again in this way … | |
[ICODE]import java.util.Scanner; public class Simple { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("How many number?"); int numNumber = scanner.nextInt(); int sum = 0; int []numbers=new int[numNumber]; int highest=numbers[0]; int lowest=numbers[0]; for(int i = 0;i< numbers.length ; i++) { System.out.println("Please input number" + i + ":"); … | |
Hi, I currently use Eclipse as my IDE. I'm looking for instructions on how to integerate my Java code with HTML in the Eclipse enviornment or what IDE I can use in conjunction that will allow me to do so. Any advise would be appreciated. -- LiveWire | |
Hey guys I just ran into some pretty interesting java problems on a different website and thought some of you might get a kick out of this. Determining on how well this goes I may post some more. So here comes problem 1. Determine the following output with the use … | |
hi all,i have a java project, i want to read records from a data base(access) and then put them in a container with check box within each record..but my code is only displaying the last record of the table..i want each record to be displayed on a line..please help me … | |
Okay I am writing a program that, in the end, will bring up a GUI window and ask the user what type of shape they want to make. The choices are line, circle, ellipse, rectangle, and polygon. When the user selects a shape they are then asked some key information … | |
I seem to have done something wrong, but I can't figure out with it is. Everytime I compile I get the error `"reached end of file while parsing"`. Can anyone help me find where this error is? public class ElectricBill { private double k; private boolean s; public ElectricBill(double pKwh, … | |
Hi all, I've written a Java programme with a while(true) loop. Within this while loop, it's a whole lot of process which runs indefinitely (because I'm doing some image recognition and doing some genetic algorithm testing.) I first tested it in NetBeans, by clicking on 'Run'. Everything went well, but … | |
i am new to java networking. my client program is giving an error `"Couldn't get I/O for the connection to:192.168.1.2" ` in the below program.will u please help me.and 192.168.1.2 this is my local machine. code: import java.io.*; import java.net.*; public class client1 { public static void main(String[] args) throws … | |
Hello, In my application, as a result of P2P communication, I receive a String object, which is the serialized representation of a Hashtable. Can I somehow recover my original object? I've never done such thing before, and I couldn't find any example which would help. Thanks in advance, Chaster | |
Hi all, I'm a beginning CS student and am working on an assignment today and am hoping someone wouldn't mind checking my work. I've typing out each assignment problem followed by the code I wrote. Also, please note I'm not required to write complete methods just the code for the … | |
Hi All, I need a bit of help with a java Dots and Lines game i am developing, Similar to the Dots and Box game. I have laid out the Dots with the two colours blue and yellow which change accordingly. I now need to draw a horizontal or a … | |
Hi, does anyone know how to read the specified line from a text file? And by create a program, we can load what is write inside the text file and read line by line to show at the program. Does anyone have idea on it? Thanks and regards Rainny ![]() | |
Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is … ![]() | |
Hi, I have the following structure of my project [code] Copyproject(main folder) | |_____src(folder) | | | |__Nertworkpackage | | | | | |__Storepackage | | | | |__FtpPackage |__module1.py | |__module2.py |____ tests |__ module3.py [/code] Module1 takes some commandline parameters that will do some operation Like If I … |
The End.