32,199 Topics
| |
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 … | |
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 … | |
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 | |
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 … | |
[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] | |
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. | |
Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks. | |
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 : … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks. | |
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 … | |
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 … | |
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. … | |
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 … | |
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. | |
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 … | |
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 … | |
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... | |
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 … | |
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" | |
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 … | |
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 … |
The End.