36,051 Topics

Member Avatar for
Member Avatar for TheWhite

Hi. Well, the past year, I have spent learning GUI programming in Java and have created several games (Asteroids, MineSweeper, TicTacToe, etc, etc) in Java. I was wondering if there is an easy way (is it easy at all?) to go from what I know about GUI programming in Java, …

Member Avatar for TheWhite
0
687
Member Avatar for arch1

Hi! I am trying to do Junit testing with Eclipse 1) download and install Junit 2)set the class path. 3)test the installation by running java org.junit.runner.JUnitCore org.junit.tests.AllTests. i am unable to test my installation (Step-3) it gives me Error: java.lang.ClassCastException : class junit.tests.AllTests Is something wrong with classpath settings?

Member Avatar for natsuxia
0
39
Member Avatar for LevelSix

Write a simple graphics editor that allows users to add a mixture of shapes (ellipses, rectangles, and lines in different colors) to a panel. Supply commands to load and save the picture. Basically it wants a program with a buttons for New, Load, Save, Rectangle, Line, Ellipse, Red, Green, Blue, …

Member Avatar for Ezzaral
0
305
Member Avatar for jk_bscomp

Hello everyone!!! Does anyone here knows how to create a GroupBox in Java similar in VB.NET and C#. I hope you could help me with this one. YOUR HELP IS HIGHLY APPRECIATED.....

Member Avatar for Phaelax
0
91
Member Avatar for shaynicb25

I'm working on a program to keep track of a hardware store's inventory. For each item the item ID, item name, # of pieces ordered, # of pieces in stock, manufacturer's price and the selling price. The program must also print out a report. The program is menu driven and …

Member Avatar for Alex Edwards
0
120
Member Avatar for jack44

Hi there, i'm having trouble with creating the Pseudocode for my program, the program took me ages to complete with alot of help, i sort of understand what needs to be done, but could someone start me off as i'm unsure of how to begin:- [code]import java.io.*; import java.util.*; public …

Member Avatar for himi
0
139
Member Avatar for maingi

Can someone help me to write a program that can read and write to a file and then store the user input in the file using the Property and ClassLoader classes.Also when another person uses the program it should tell you the last person to use the program.Thanks in advance

Member Avatar for maingi
0
111
Member Avatar for thanaras

Hello. Possibly, this is the best java forum in the whole net. So i thought to ask. I want to capture video from a web-camera. So far, i have enabled the camera using JMF and i can see "inside" the camera. What i want is to capture video in GRAYSCALE, …

Member Avatar for enantiamorph
0
109
Member Avatar for romi_ch

Dear developers, I lay my apologies if my question do not relate to current category. I am new to Java and trying to build a Java web application where i can use beans (to configure a database connection as well as my database entities) and JSP to present data through …

0
61
Member Avatar for guravharsha

Hi All, Kindly give me some guidelines regarding below issue. I am developing Student feedback system to provide feedback about faculty to in institution. Now I have three tables in database: 1.Questionid containing column as id, questionid-description, type 2.event table containing column eventid ,eventdescription,questioned-description(contain same data as like questionid-description from …

Member Avatar for peter_budo
0
148
Member Avatar for flyerorange

Hello....I run XP, and up until a week ago, there were no problems with watching Youtube. Today, I get.....Hello, you either have JavaScript turned off or an old version of Adobe's Flash Player. Get the latest Flash player..... So, I downloaded the flash player, and it says success, but no …

Member Avatar for itdupuis
0
211
Member Avatar for Jaulm

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. …

Member Avatar for Jaulm
0
210
Member Avatar for ivay14

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!

0
84
Member Avatar for hana rashid
Member Avatar for lordx78

[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.

Member Avatar for vidaj
0
139
Member Avatar for zyaday

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 …

Member Avatar for Netztonia
0
106
Member Avatar for twgood

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 …

0
93
Member Avatar for JConnor135

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 …

Member Avatar for Alex Edwards
0
272
Member Avatar for JConnor135

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; …

Member Avatar for Alex Edwards
0
279
Member Avatar for Moth126

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.*; …

Member Avatar for sciwizeh
0
79
Member Avatar for shaynicb25

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 …

Member Avatar for Alex Edwards
0
2K
Member Avatar for iSoftware

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 …

0
65
Member Avatar for JConnor135

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 …

Member Avatar for JConnor135
0
273
Member Avatar for insauciant

what is wrong in following code [code] <form name="log" method="post" action="login.htm"> <% try { //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //String url="jdbc:odbc:ODVS"; Connection conn=null;//DriverManager.getConnection(url,"downtime","downtime"); Class.forName("oracle.jdbc.driver.OracleDriver"); conn=DriverManager.getConnection("jdbc:oracle:thin:@10.10.10.2:1521:PLMDM","vvv","vvv"); String uid=request.getParameter("username"); String pwd=request.getParameter("password"); String sqlQry=("select * from USR_PASS_TB where username='"+uid+"' and password='"+pwd+"'"); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery(sqlQry); if(rs.next()==true) { //response.sendRedirect("../HTML/index_group.htm"); %> <jsp:forward page="login_cae.htm" /> <% } else { //response.sendRedirect("..HTML/invalid_login.htm"); …

Member Avatar for peter_budo
0
61
Member Avatar for gReaen

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 …

Member Avatar for gReaen
0
110
Member Avatar for JConnor135

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 …

Member Avatar for Alex Edwards
0
87
Member Avatar for mrityunjay22

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

Member Avatar for tuphng
0
966
Member Avatar for hidash_in
Member Avatar for tactfulsaint

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 …

Member Avatar for peter_budo
0
159
Member Avatar for bkgupta

Hi , I am a new member to Daniweb.I have one issue on progress bar in jsp. can any body tell me how to generate progress bar in jsp,while its fetching data from server side.

Member Avatar for peter_budo
0
68
Member Avatar for zyaday

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 …

Member Avatar for darkagn
0
91
Member Avatar for twgood

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 …

Member Avatar for sciwizeh
0
96
Member Avatar for annuw

HI, i want to generate html file from xml and xslt documnet using java...pls,,,

Member Avatar for annuw
0
75
Member Avatar for sbuggle

Hello, I need detailed examples of how to create a pdf from jsp. On the jps page there will be a print button and when clicked the same jsp will pop up as a pdf to print. How do you include this behind the print button.... Using ireport Someone said …

Member Avatar for peter_budo
0
97
Member Avatar for TheBuzzer

Which one do you perfer to use? For me I am using glassfish becuase netbeans installed it for me. Also I heard glassfish support newer java api while tomcat doesnt

Member Avatar for ~s.o.s~
0
62
Member Avatar for wrappingduke

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 */ …

Member Avatar for wrappingduke
0
128
Member Avatar for tactfulsaint

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 …

Member Avatar for ChaseVoid
0
149
Member Avatar for manonthemoon

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 …

0
47
Member Avatar for amjad277

[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 …

Member Avatar for amjad277
0
168
Member Avatar for sr0867

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> …

0
63
Member Avatar for tactfulsaint

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 …

Member Avatar for tactfulsaint
0
92
Member Avatar for codered152

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

Member Avatar for vidaj
0
83
Member Avatar for twgood

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 …

Member Avatar for javaAddict
0
88
Member Avatar for bloody_ninja

[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 …

Member Avatar for masijade
0
299
Member Avatar for JConnor135

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); …

Member Avatar for Software guy
0
172
Member Avatar for codered152

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 …

Member Avatar for codered152
0
108
Member Avatar for JConnor135

For this piece of code I have to change the arguments in the writeLine and writeBlock methods to char c, instead of String c. The problem is I dont know how to get the scanner to read in a character instead of a string. Is there any way to go …

Member Avatar for peter_budo
0
132
Member Avatar for mir_dev
Member Avatar for kishor_agrawal

I am a newbie ...and i m working on a casetool....named Coolgen... Which Generate the jsp pages.... now i have added a html control on my page...... <input id="demo1" size = "10" onBlur="magicDate(this);validate1();" > Now there is a onther field.... which is ool gen field.........whose id is 'PUBLISH_DATE' i want …

Member Avatar for Troy III
0
109
Member Avatar for jeetudaljit

Hi, Could anyone help me to pass user name and password to another jsp page for testing from database without showing it in URL that what user has entered?

Member Avatar for jeetudaljit
0
100

The End.