32,199 Topics

Member Avatar for
Member Avatar for anju114

Hi I am having problem compiling a java file Main.java which uses an object of another class, named Pet I am using Netbeans 5.5 and I don't know where to put the class file Pet.class. I don't have Pet.java No matter where I keep it the error message I get …

Member Avatar for thekashyap
0
146
Member Avatar for ajay_tabbu

i m using window xp and jdk1.6.0. i set environment variables as follow user variables i creat new and in variable name "classpath" and in variable value .;C:\Program Files\Java\jdk1.6.0\bin;.;C:\World after that i edit system variable as follow i edit variable "path" in variable value I append "C:\Program Files\Java\jdk1.6.0\bin" right side …

Member Avatar for jwenting
0
335
Member Avatar for uswatun

anyone can explain to me what is the concept of inheritance and access modifier. actually, i can't understand how it be used in java program

Member Avatar for PoovenM
0
119
Member Avatar for nnobakht

hey guys im trying to write a simple caclculator. i have written the code and the functions for it but the the main when i try to use the Scanner function to get user input and to put it all together it does not work. the code is below i …

Member Avatar for iamthwee
0
104
Member Avatar for TingTing

[B]this is my 1st time to post. help pls.[/B] [B]can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad: [/B]

Member Avatar for TingTing
0
138
Member Avatar for harish333

i am using internet explorer using a form to save the results to a file but when i submit the form, a page comes up saying page can not be found with the error. "HTTP 405 - Resource not allowed Internet Information Services" any Ideas how to resolve this.

Member Avatar for jwenting
0
38
Member Avatar for Cerberus

Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks.

Member Avatar for peter_budo
0
168
Member Avatar for Sukanto

I am new to JNDI, JTA, javax.sql though I am familiar with java.sql I want to access a database (a Derby database) using JNDI lookup and UserTransaction (as I want to learn about Distributed DB Transactions). I am using [b]Sun Java Application Server(SJAS) 8.2[/b] Database: [b]Derby[/b] Directory Services of : …

Member Avatar for Sukanto
0
150
Member Avatar for nnobakht

hey guys im supposed to write a simple calculator in java. Not in applet. Stack class has already been given and i was supposed to tokenize the input, have a function convert to take it from infix to postfix notation and eval to evaluate it. i have written the code …

Member Avatar for iamthwee
0
400
Member Avatar for jk1998

In my JApplet, I am able to change the background color of the panel but not the currentSurface which is an instance of PaintSurface extends JComponent. Could someone please help me out? Many thanks [code] import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.geom.*; public class Tanks extends JApplet …

Member Avatar for jk1998
0
177
Member Avatar for bluebird

Hello! Please help me! I display the data from the arrylist xx in the table. But the program shows the table several times. I did not notice that before. Now whenever I click the menu, it shows the table 26 times. What is the problem? I am in trouble. Please …

Member Avatar for peter_budo
0
78
Member Avatar for Stoney

Hey everyone. I have a problem. I can't find why my code won't convert Fehrenheit to Celsius. :sad: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CTemp extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { CTemp frame = new CTemp(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); …

Member Avatar for masijade
-1
181
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
305
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 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
164
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
167
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
107
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

The End.