32,199 Topics

Member Avatar for
Member Avatar for TheWhite

I'm trying to create a JButton in 1 of my 2 JFrames which exits the top or current JFrame... If I try: [code] System.exit(0); [/code] The entire, currently running Java Virtual Machine, exits... (both frames) I'm basically trying to get the same result as [code]setDefaultCloseOperation(DISPOSE_ON_CLOSE);[/code] does to the X button …

Member Avatar for Ezzaral
0
117
Member Avatar for abhijeet_raj

Hi, After installing jdk1.5 my program is compling but at the time of execution its giving error as Exception in thread main java.lang.NoClassDefFound error.I think it is problem of classpath.

Member Avatar for tsr_tvsk
0
167
Member Avatar for onsir

how to connet to database using hibernate, because i create hibernate.cfg.xml while is running i have build simple application for test connection to database using hibernate. when write application i'm not write hibernate.cfg.xml, but i want create while running. so when i click button show error like this " "Jun …

0
62
Member Avatar for akankshaag

Hi, I'm new to java and working on an application which has a tool to set alerts. This tool is based on EJBs and i've been asked to make it a stand alone application. I really have no idea how to go about it. please help! Akanksha

0
68
Member Avatar for farooqsam
Member Avatar for Jx_Man
0
48
Member Avatar for beelzibub

[ICODE] ... am i right to think that the call in the main ( new Grid ...) sets up the board then the (new Che ...) calls to set up the men/pieces which it does (i hope) but it also encounters a setLayout(new Grid ...) which iverwrites all the (new …

Member Avatar for Alex Edwards
0
159
Member Avatar for dnalor

package packagePgmaLibrarySystemRolandgasparDizon; import javax.swing.SwingUtilities; import java.awt.BorderLayout; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Dimension; import javax.swing.JLabel; import java.awt.Rectangle; import javax.swing.*; import java.awt.*; import javax.swing.JSlider; import java.awt.GridBagLayout; import javax.swing.border.SoftBevelBorder; import javax.swing.JScrollPane; import javax.swing.JTable; import java.awt.GridBagConstraints; import javax.swing.JButton; import javax.swing.BorderFactory; import javax.swing.border.EtchedBorder; import java.sql.*; import java.awt.event.*; import javax.swing.ImageIcon; import java.awt.SystemColor; import java.awt.Color; …

Member Avatar for masijade
0
170
Member Avatar for darklich13

I'm having a little trouble with one of my exceptions. The following code is just a simple division of two integers. I have built two exception to handle an InputMismatch and divide by zero. What I want to happen is when there is an exception, I want the program to …

Member Avatar for darklich13
0
254
Member Avatar for k_en

i can't understand what problem with the statement below. No error in sql statement and connection. Date dt; dt = (rs.getDate(1)==null?"":rs.getDate(1.trim());

Member Avatar for jwenting
0
102
Member Avatar for sasidharnet

Hello, this is sasidhar. I am going to attend an Inteview. He gave me a simple project using servlets. Inventory management. I am searching for procedure in net. If anyone gives Some useful information regarding this I am very thankful. If I submit this project almost I will get job. …

Member Avatar for javaAddict
0
258
Member Avatar for almualim
Member Avatar for freesoft_2000

Hi everyone, I was wondering if anyone can recommend a good java ide. I have tried netbeans but i find it very confusing to use. I am looking for a very simple but free java ide to use. Can anyone recommend. Thank You Richard West

Member Avatar for sciwizeh
2
352
Member Avatar for marcosjp

Hello! As a college assignment, I'm finishing a small applet that communicates with a MySQL database (through a Java server via RMI - all this is part of the assignment). It's doing all it should except for one thing: in one of the tabs I included a JTable that lists …

Member Avatar for jwenting
0
125
Member Avatar for sreddy_k

Hi All , I am new to this forum and Ajax technologies. let me introduce you first , my name is sam and working as a java developer. I am working in a project where i need to use Ajax . I have a Jsp which have 2 combo's in …

Member Avatar for jwenting
0
62
Member Avatar for warjas816

I'm trying to demonstrate various array operations, and have a couple of questions. I'm having problems with printing out the column and row totals. It only prints out the totals of the last row and last column. It also only prints out the lowest of row 1 and the highest …

Member Avatar for VernonDozier
0
133
Member Avatar for chopram

Hi Guys, I am quite experienced in programming with Java. I have though come accross a small problem, I don't know how to implement the MVC pattern. I understand the concepts of the MVC pattern and I was hoping that someone on this forum could help. I have a model …

Member Avatar for jwenting
0
316
Member Avatar for rayomand

Hello I am new new Java, and would like some help in a exercise I am trying. I would like to know how to get java to print out the "[B]Hundredth[/B]" number in a number. ie in the number [U]1234 [/U]how would I get java to print out that [B][U]2[/U][/B] …

Member Avatar for bugmenot
0
46
Member Avatar for funtoosh

I implemented an applet using netbeans which can load an image.I put the image file both in src/package where the .java file is present and in build where .class file is present.. The Applet get started bt the image is not viewing.Please look through it.Am I put the image files …

0
73
Member Avatar for vasu_atri

hi friends..i want to divide a frame into different parts... how can i do that.....plz help me

Member Avatar for Alex Edwards
0
90
Member Avatar for beelzibub

... what i am trying to do use thr GridChessBoard clas to paint/drae an empty board then return to the program which adds the men/pieces to the board. ... i can get the empty board but it doesn't add the meb/pieces. i don't know why. i suppose i bit off …

Member Avatar for beelzibub
0
141
Member Avatar for K?!

Hello everyone As you can see, this is my first post. We're trying to write a cards game and it uses 12 cards. Someone taught me to put the buttons in an array, which i think is a really good idea. I'm encountering one problem, how do i create an …

Member Avatar for sciwizeh
0
2K
Member Avatar for warrior16

I'm trying to make a Connect 4 game and I'm getting it to work, but I think I'm doing it in a very long and hard way. I think that array were created to simplify code like this, but I'm not sure how to use an array for this occasion. …

Member Avatar for Alex Edwards
0
125
Member Avatar for Futbol10

<HTML> <BODY> <APPLET CODE= MyHangman.class WIDTH=1000 HEIGHT=1000> </APPLET> </HTML> I need to know what to do next below is my java file and I am confused with how to check the words i have in the array and the letters guessed in the word....anything would be useful thanks......and do you …

Member Avatar for Alex Edwards
0
98
Member Avatar for funtoosh

I'm implementing a java code for drawing lines using applets in netbeans using javaapplication 11 package.the java code is in src folder and .class and html files are in build folder at their appropriate positions.... It is giving Error:-- `java.lang.NoClassDefFoundError: DrawingLines (wrong name: javaapplication11/DrawingLines)` on Java Console. the code is …

0
54
Member Avatar for DAKORACING

Hi i am new. i hope someone could please help me. i was having trouble with my java so i removed it from my computer and went to the net to try and reinstall it. no luck. all i get is (nsis error) file corrupt, 1335 error, internal error. i …

Member Avatar for jwenting
0
85
Member Avatar for gl_nana
Member Avatar for CK01

Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the …

Member Avatar for CK01
0
100
Member Avatar for Alex Edwards

Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done?

Member Avatar for Ezzaral
0
104
Member Avatar for PL.P27

Hi everyone. Hope everybody is having a fantastic day. I have a simple question and need your advice to guide me towards a solution. My question is, rather, I need help with. I'm doing the game hangman and I currently have a string that contains the secret word that is …

Member Avatar for Futbol10
0
127
Member Avatar for k_en

i get time field from a database table. But may i know how to convert it into 24 hour minutes and second. simpledateformat("hhmmss") is not working. Is there any other simple java method doing it?

Member Avatar for masijade
0
167

The End.