35,617 Topics

Member Avatar for
Member Avatar for Stoney

I can't find this typing error. Somewhere on Line 44. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Weight extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Weight frame = new Weight(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void createGUI() { setDefaultCloseOperation(EXIT_ON_CLOSE); Container window …

Member Avatar for rgtaylor
0
323
Member Avatar for Stoney

I get a tip of $8.0 when I want $8.4. What am I missing here? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Tip extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Tip frame = new Tip(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void …

Member Avatar for Shashikant
0
105
Member Avatar for volscolts16

Background: > An n x n matrix that is filled with the numbers 1, 2, 3, ... n squared is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Write a program that reads in …

Member Avatar for iamthwee
0
997
Member Avatar for rushe20

I am currently making a game were jam jars are mixed up and they must be placed in the correct numerical order. One pot must be picked up and swapped with wich ever one the user wants. I have the program working that they can dragged a jam jar to …

Member Avatar for iamthwee
0
84
Member Avatar for Cerberus

Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks.

Member Avatar for Cerberus
0
92
Member Avatar for parthiban

Hi all , I developed Entity Bean(BMP) and i created Deployment Descriptor in NetBeans 5.5. I'm getting following error . Error: === [code] XML validation started. Checking file:/G:/my_prgs/Xml/learning/Store_Data/build/jar/META-INF/jonas-ejb-jar.xml... Referenced entity at "[URL]http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd[/URL]". schema_reference.4: Failed to read schema document '[URL]http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'[/URL], because 1) could not find the document; 2) the document could …

0
96
Member Avatar for taineechan

Hi I'm coding a game of towers in java. I'm having trouble moving a stack from one button to another. I have eventlisteners for buttons A and B. If Button A is clicked and then button B is clicked, the value at button A must be added to the value …

Member Avatar for taineechan
0
152
Member Avatar for Cerberus

Hello. I'm using a JOptionPane to display some application information when the user selects the Help-About menu option. If the about option has been selected and you click on an alternative application (e.g. a browser) when you return to the application the JOptionPane is lost and the application can't continue. …

Member Avatar for Cerberus
0
233
Member Avatar for staneja

I am learning JSP can anyone tell me how shall i proceed with JSP I mean what should be sequence of things that will make learning convinent for me Please do suggest me which kinda aaplication i should make in JSP........some ideas I have done core java and servlets

Member Avatar for jwenting
0
152
Member Avatar for uswatun

anyone can help me.. i have a task to coplete below is the question : create class called Arithmetic for performing arithmetic process. use two integer variables to represent the private data of the class. provide a constructor function that enables an object of this class to be initialized when …

Member Avatar for uswatun
0
171
Member Avatar for Venks

Hai friends please help me printing the file through Parallell port, iam doing project in comm ports, i want to print a particular file or string through parallel ports...thanks in advance.

Member Avatar for blufab
0
81
Member Avatar for volscolts16

I am taking a Java Beginner class, which I have explained in an earlier thread. I read the chapters and do understand them to an extent, but when it comes to doing the homework, I am at total loss. I have put in for a tutor, and hopefully one comes …

Member Avatar for blufab
0
170
Member Avatar for parthiban

Hi all , I'm new to EJB Programming. I need your suggestion of which type of Entity bean i can use for my task . Here's the task i need to accomplish : ============================ I have data in XML now i need to store in SQL SERVER tables which i …

Member Avatar for jwenting
0
100
Member Avatar for Masood Ali

Hi All I m a C++ programmer and now I want to study Java... Can somebody tell me from where I can get a free download for the book Java Complete Reference Or Some other beginner level book... Thanks...

Member Avatar for sangramtheroot
0
88
Member Avatar for rdkmini
Member Avatar for darylharkin

i'm currently in the middle of a Java programming assignment, and having quite a spot of bother! for some reason, when i run my code (which has no visible errors), a small window appears with the words Swing Example in blue italics. anyone got any idea what coud be causing …

Member Avatar for darylharkin
0
76
Member Avatar for captain.charli

write java to access classes that are saved in different files. write java code to read following string as input from user. "JaVa-Is-A-pRoGrAmMiNg-LaNgUaGe" Display and convert it into the following format. "Java is a programming Language"

Member Avatar for Phaelax
-1
72
Member Avatar for hlnren

HI everyone, i need to enter all those values and add them up. but have some trouble storing numbers to a array list. plz help~~! [import java.util.*; public class array { public static void main (String []args) { Scanner sc= new Scanner (System.in); int value; System.out.print("How many values are in …

Member Avatar for keya_datta
0
108
Member Avatar for shishir

hello everyone.i have just started programming in EJB.i am tring to make an application for online banking system.During the compilation, i am getting the error of missing return statement in all functions where retrun type is String.i am trying to get the output in a JSP page....here is one of …

Member Avatar for peter_budo
0
145
Member Avatar for staneja

I am new to JSP and was trying a very simple program that adds/Divide/multiply/Subtract 2 numbers I am taking two numbers from a web page and as per the button pressed performing the action on JSP page. I have kept a vraiable c for output If i write int c=0 …

Member Avatar for staneja
0
102
Member Avatar for peter_budo
Member Avatar for peter_budo
0
205
Member Avatar for nnobakht

Hey guys, i jsut got this assignment and i have 1 week to implement it but i have no idea where to start. The link to the question is [URL="http://www.cs.sfu.ca/%7Emitchell/cmpt-126/a2/a2.pdf"]http://www.cs.sfu.ca/~mitchell/cmpt-126/a2/a2.pdf[/URL] and i have also attached it as a pdf. the Stack class refered to in the assignment is [code] class …

Member Avatar for jwenting
0
114
Member Avatar for san_fran_crisko

Hi, I am trying to store details in a Vector and then recall them using different search categories. I'm getting no errors but the details I enter are either not being stored or not being recalled. I don't know what one it is. I attached the code rather than copy …

Member Avatar for san_fran_crisko
0
108
Member Avatar for san_fran_crisko

Hi, I cannot for the life of me figure out why I keep getting the error message, "cannot find symbol method methodname()" when I try to call methods from another method. I have tried changing the main method so its not static but it makes no difference. Anyone who could …

Member Avatar for san_fran_crisko
0
146
Member Avatar for jeet_portal

Hi Experts, I have written a Servlet file which sends email to a user .When if i run that servlet file in command Prompts it sends a email .Now i want that servlet file to be automatically executed inside my Tomcat server within a stipulated Time . Sothat it can …

Member Avatar for jwenting
0
114
Member Avatar for goutham_see

can anyone give me a detailed importance of sun certificate for java programmer??? What about the job oppurtunities for the person certified??

Member Avatar for jwenting
0
156
Member Avatar for Braga_ESI

Hi there, I'm making a webpage with some news that I can update thru another aplication that puts the new news in my "mysql" database. :-| No problem tile now, but i'd like my page to auto refresh the include that I have with de news in PHP. :eek: So …

Member Avatar for peter_budo
0
74
Member Avatar for hbk619

ok, i don't know anything of java and somehow managed to DL NetBeans the sun program that creates Java apps... apprently.. (wasn't what i intended to DL but hey :mrgreen: ) A friend wants a card game made, so i searched these forums and found [URL]http://www.daniweb.com/techtalkforums/showthread.php?t=68640&highlight=card+game[/URL] i took the coding …

Member Avatar for hbk619
0
143
Member Avatar for JoeMDOH

On Page One of my application, I have a dropdown list that populated by a SQL query. The list displays the "Text" of the items on the list, but the values (that will be passed are the indexes from the database table) . The user can select multiple items from …

Member Avatar for rgtaylor
0
167
Member Avatar for ally1002

[COLOR=#941edf] [/COLOR][COLOR=#941edf]Hello, im new. And I'm kinda stumped. We were given an exercise to do in which the user enters a number in roman numerals and the program converts it to decimal numbers. I have no problem convert if the number given is in the right order from the largest …

Member Avatar for ally1002
0
84

The End.