32,204 Topics
| |
This is my first post and I am new to this so bear with me...I am trying to write a program that will output messages to 1 or more text files. For example if I want to write to 3 log files, depending on what is happening in the code. … | |
Hello! I would like to ask you guys something. I am planning to create Java Word Search Game which find words from the display board when highlighted...Do you guys know any good steps to start with....Please HELP!! Can anyone provide me with a good way to start with it....Thank U! | |
[COLOR="Green"]Netbeans IDE[/COLOR] [COLOR="Green"]Eclipse IDE[/COLOR] [COLOR="Green"]IntelliJ IDEA[/COLOR] Which from the above the the [COLOR="Red"]BEST[/COLOR], [COLOR="Red"]USER FRIENDLY[/COLOR], [COLOR="Red"]COMPLETE[/COLOR] IDE to use to design/create GUI for Java based programs. Please advise. Thanks. | |
I have a programm that runs an applet. It loads a series of images and paints them. The problem is the programm seems to not to paint the images in the same order..or rather it skips some of the images....what can i do? I tried using the udate(screen) function but … | |
I am not getting error messages, but it is not doing what I ant it to do..here is the assignment: Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose (for the DVDs subclass, you could use … | |
Can someone please help me find out why I am getting a nullpointerexception for this code. Ive been racking my brain and cant find it for the life of me. The program is supposed to delete an element from the linked list that is built in the main method and … | |
For this code to delete an element from a linked list how do I get the head to point to the first element in the list(which is 0)? [ICODE]public class IntNode1 { public int item; public IntNode1 next; public IntNode1 head; //////Constructor/////// public IntNode1(int item1, IntNode1 next1) { next=next1; item=item1; … | |
I'm having a problem with my assginment. This is the Java Number Guessing Game. It compiles and runs with no errors but when executed it stops with only one user input. You must hit the "Play Again" button to continue. Here is my code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; … | |
I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the … | |
Hi, I have a HTML page with a form in it. I need to pass a parameter to my Visual Basic application if the signup was successful. My HTML form is simple: [CODE=HTML] <form action="signup.php" method="post" name="signup" onSubmit="return signup();"> <!-- Some text boxes and check boxes --> </form> [/CODE] On … | |
I am trying to write a program that will delete the nth element from a linked list. Before I was getting a nullpointerexception but I think I cleared that up. Now I just get a repeating error message that I put in the code for when the list goes to … | |
Hello, I know this is a basic question but i didnt get the answer myself. So posting it here. I have a program that spans many files, all are .java. If i have to compile them should all of them be in the bin folder of the JDK? Can i … | |
Hi, I am trying to write a code that will delete an element from a linked list and then display the updated list, but I keep getting a nullpointerexception, does anyone know where I went wrong? [ICODE]import java.util.*; public class IntNode { public int item; public IntNode next; public IntNode … | |
catalina.bat file is missing error comes when i run jsp page with tomcat 5.5 and netbeans 6.0. i have tried different mirrors for tomcat5.5 but above mentioned error comes always | |
hi masijade, tell me how to close the application using java. | |
servlet package does not exist any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws ServletException,IOException{ i++; out=response.getwriter(); out.println("<b>your are … | |
this is a code that i found fromsome website I replaced line 18 by this line below, and put theimage ho.gif in the project folder. Sth is wrong..image is not displayed on the screen? what is the problem?? I jsut wanted to try it using one image only............that's why i … | |
I have gotten my program to compile but it will not run: here is the error: init: deps-jar: Compiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication27\build\classes compile-single: run-single: java.lang.NoClassDefFoundError: javaapplication27/FGInventory2 Caused by: java.lang.ClassNotFoundException: javaapplication27.FGInventory2 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread … | |
Hello, Attempting to create a progress bar for awt-based application. I'm trying use a thread to do some simple animation to give the appearance that a frame (the progress bar) is incrementing. However, frame will not paint immediately. Here's the code: [CODE] import java.awt.*; /** * * @author user */ … | |
import javax.servlet.*; import javax.servlet.http.*; these servlet package does not exist, any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws … | |
Hi.. I am facing a problem in aggregating some CSV data, using Java. I am not able to figure out how to aggregate the common values. My input is like this: G01,38020, XX, 3M EUR, Sep-07,10,23 G01,38020, XX, 3M EUR, Sep-07,11, ,72 G01,38020, XX, 3M EUR, Dec-07,14, ,500 My expected … | |
[B]- I try here to close the XAConnection and XASession session.close() connection .close() - but the server shows me this Exception:[/B] 2008-07-18 09:30:14,093 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:162) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196) at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376) at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443) at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515) at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664) at … | |
I am using Oracle IAS 10 g for deploying my web application using a war files.. I want to access certain cgi files placed in under cgi bin besides WEB-INF on the oracle server Wht should be the entries in web.xml ?? Tried doing this but did not worked <servlet-name>CGIServlet</servlet-name> … | |
i need help with login mechanism, i have this application that i am trying to add a login form but i dont know how to authenticate the username and password.. i need to learn how to send the username and password to the database and when the user logs in … | |
Hi All i have java question for you guys. How can i add columns by click the button. i want my program keep adding columns whenever user click the button. any help. Thank you | |
My assignment says: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of … | |
[code=java]import java.awt.Color; import java.awt.BorderLayout; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.net.*; class SocketClient extends JFrame implements ActionListener { JLabel text, clicked; JButton button; JPanel panel; JTextField textField; Socket socket = null; PrintWriter out = null; BufferedReader in = null; SocketClient(){ //Begin Constructor text = new JLabel("Text to send over … | |
for this code I need to set string d to char c, can anyone tell me how to do it? [ICODE]public static void main(String[] args) { int n; int m; String d; char c; Scanner sc = new Scanner(System.in); System.out.println("Input Integer: "); //get the value n=sc.nextInt(); int answer = sum_upto(n); … | |
hi all i have a question about the java button listener i m working on this project where i want the user to input their value in the textfield and when user press the button the value needs to show on the label next to it. so now i got … |
The End.