32,204 Topics
| |
i want a calculator project just use applet not swing or frame i hav but i took just input through mouse but dont perform any operation | |
I'm trying to add an image to a button instead of text. I looked at some examples, and I can't figure out what I am missing. I've imported this because the ex. had it. Don't know if it is needed. [code=java] import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.ImageIcon; [/code] Then this … | |
Write the definition of a class Telephone . The class has no constructors, one instance variable of type String called number , and two static variables. One is of type int called quantity ; the other is of type double called total . Besides that, the class has one static … | |
codes in two files. Is there a way to use a method cross files? | |
| Hello everyone! The other day as I was surfing the net I came accross this Java Game on this web page: [URL]http://www.bosanci.net/ljubav.php[/URL] *It is a foreign language and it is a "Crush Calculator" - It asks you to type in a male name in the first string and a female … |
hi everyone.I'm a beginner in java and i'm trying to create a full screen applet without any success.Any help will be appreciated. :D | |
Hi all I need a java application to be developed for Game of Life without using applets by using only arrays thanks in advance | |
illegal starts of expression. public check() at line 50. can anyone hepl me please. class waiters { private double tab; public waiters(String name); { System.out.println("my name is"+name+",i''ll be your waiter!"); tab = 0.0; } public double priceof(String s) { double price; if(s.equals("chicken")) {price = 5.95;} else { if(s.equals("burger")) {price = … | |
Hi, I want to know how can I capture the system date using a java program. I want to run this code automatically when the system is login. I want to capture the system date even if the user change the system date. Kindly waiting for your suggestions Thanking You … | |
public class GradeSystem { public static void main (String args[]) { ........ public int searchStu(int id){ // problem happen int i=0; for (i=0; i<4; i++) { if (student[i].getStudentID() == id) return i;} return i;} int id; boolean d; id = Integer.parseInt(JOptionPane.showInputDialog("Please input ID number : ", JOptionPane.QUESTION_MESSAGE)); d = Student.isStudent(id); … | |
This a problem i faced .When i made applet the access file i faced the following exception: [INLINECODE]java.security.AccessControlException: access denied (java.io.FilePermission text.txt read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at CheckTopScore.<init>(CheckTopScore.java:30) at MainFrame.<init>(MainFrame.java:200) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native … | |
hi im new to our community. im running jsp application in jboss server 4.0.4. in that without specify the port no? can i run the application is possible? send replay thanks in advance arun | |
i want to make calendar with date and time my client asked me to do it within 5-6 days of time i am working on it. it seems it takes more time do it.where can i get free calendar applet to instantly put on my client website this is just … | |
i want to implement a special symbol like (integration symbol )in java i want a complete example that i can excute it | |
hi, please i want learn java applet ,but i do not have any link to get correct start , i make search on this topic but i want to link include java applet from A to Z . thanks | |
is there any available free calendar swing components available or am i going to have to make one from scratch? | |
Which would be the preferred, or more efficient, way to read in a 40mb XML file? I remember reading (awhile ago) there were different methods of parsing XML, some more efficient than others depending on the need. The entire file would eventually need to be loading into an array, so … | |
Hi every body I am a second year computing student and I was lately thinking about project ideas but couldnt figure out a good one. I have recently started java only in my second year and I was thinking developing a web application ( may be auction site ) for … | |
i need to enter commands in one line using delimiter "&" (ampersand) or ";" (semicolon),using one type of delimiter in a line. e.g "cat&cp&rm" or "cat;cp;rm". Both should not be used in one line e.g "cat;cp&rm", when this happens the system exits. I've tried the code below using Split method … | |
Hi I have a method, which is called more than 50 times a second. I have multiple(more than 10) individual variables of different data types initialised in that method & in last part of the method, a single String is returned appending the value of all variables (with conditions on … | |
hi all [B]i m facing an hibernate error in my application using mySql5.0.3 as a data base and net beans 5.5 ide [/B] my application is running very properly but when i loging in next morning it displays the [COLOR=#000000][B]org.hibernate.exception.JDBCConnectionException: could not execute query[/B][/COLOR] and also [COLOR=#000000][B]Connection was closed due … | |
Hi to everyone! I want to learn java ... can anyone suggest books to study, like the one we have in C++. thanks in advance. | |
basically what I am trying create a servlet that will receive the bytes that are being sent from the MIDlet. I have pasted my function that is sending the bytes from the MIDlet so we can be on the same page. If anyone can help please email me at <snipped> … | |
This is a really strange bug... I'm doing a 'game' of sorts for Computer Science, and it works wonderfully. We have a main method that initializes things and starts the game loop. The game itself works when GUI.java is executed. Every method call in the main method is static. Now, … | |
Hello, I am a C++ programmer who just got an associates degree. I went for an interview yesterday and did very well on a C++ technical interview. The company actually deals partly in recruiting and part application development. The interviewer told me that it would be a good idea to … | |
I'm trying to do an assignment to implement a unix shell and run commands using java. commands include read file, copy file, remove file and find substring in a file. I have managed to create the file and try out all commands individually but I've failed to run the threads. … | |
Hi, I would like to help me with a problem I have. I want to make a program that tokenize the text of an input file and create a new file with all the words (one word per line). Because in the input file there are numbers, html tags like … | |
Hi everybody, I'm new to Java language & was previously working with C++. I'm totally confused as to what is the mechanism of passing variables having 1) built-in datatypes 2) array datatypes 3) user-defined objects as datatypes to any function. Is it pass by value or reference ? If arguments … | |
I am trying to store information then retrieve it on my program. I know I have to use a class and a constructor. The problem is that my text doesn't have any good examples that I can view. I am truly lost. I am not sure 1. where to build … |
The End.