32,199 Topics

Member Avatar for
Member Avatar for Blackeagle

Hello, i have two questions concerning programming in Java. [U]1st Q:[/U] i have more than frame opened for the same program and when i want to close one of them, all the program closes as well. basically i write this code for closing the frame when clicking on a button: …

Member Avatar for Blackeagle
0
212
Member Avatar for iamus

Hi, I'm trying to install the php/java bridge on ubuntu hardy heron. I've installed it from the source downloaded from sourceForge. I've managed to get it run from the php command line as php test.php but when i run it from apache i get an error from the code below …

Member Avatar for Atli
0
83
Member Avatar for ceyesuma

SELECT b.book_num,b.book_start_date,b.book_start_time,book_end_time,b.stu_num,i.instr_lname FROM instructor AS i,booking AS b WHERE i.instr_num=i.instr_num AND i.instr_num=b.instr_num; Can someone help me get these xmls to produce this SQL(HQL)? This is how I represented the Instructor.class Instructor.hbm.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class dynamic-insert="false" dynamic-update="false" mutable="true" name="lesson.Instructor" optimistic-lock="version" polymorphism="implicit" …

0
54
Member Avatar for AllenB

Hello, I am relatively new to Java. I would like to know how to add additional threads to this applet. Particularly adding additional balls that bounce at the same time. I think the problem lies in my mousePressed event. The program will start a new ball, but make the existing …

Member Avatar for AllenB
0
2K
Member Avatar for redflame777

I have worked on this class all last night and I am having trouble finding the problem. When I compile this file I am recieving errors and I do not understand what is the problem. Here is the program code: [code] public class Employee { private String employeeName; //name of …

Member Avatar for redflame777
0
62
Member Avatar for senthil12345

hi all, i had developed an applet. This applet having one frame class. This applet is called inside a jsp page.The Process of this page is copying files from one folder to another folder in server. Actually this process is working fine in first time. but the problem is i …

0
61
Member Avatar for naf87

please I want to recover the windows's process with java how can I do thank

Member Avatar for Easter Bunny
0
88
Member Avatar for arpita_jain

Hi, I am trying to run my SendMail.java program which is correct logicaly but its giving one error again and again. Error is: DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_04\lib\javamail.providers (The system cannot find the file specified) I have created javamail.providers file in jdk_home/lib and in eclipse too.

Member Avatar for darkmikey
-1
42
Member Avatar for Lordstr

I am using Eclipse to right there It is coming up with an error within the switch statement saying that the Clock.* has not been initialized. it says Description "The local variable Clock may not have been initialized" but doesn't that happen when i do "Stopwatch Clock;" I am still …

Member Avatar for Ezzaral
0
237
Member Avatar for technicalganesh

I am having two servers viz., Windows and Linux. A service is running in Linux to produce a text file of around 8 MB per minute. If I would like to replicate (or copy) this text file to windows server which supports .Net as soon as the file is produced. …

Member Avatar for jwenting
0
116
Member Avatar for Shagufta29

how to generate xml document from data in database..please explain with an example?

0
44
Member Avatar for TofiLuk

the frame is okay but the text2, textfield has occupy the whole frame. what's wrong with my code? image: [URL="http://img68.imageshack.us/my.php?image=73815503ku1.png"]http://img68.imageshack.us/my.php?image=73815503ku1.png[/URL] here's the code: [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTest extends JFrame implements ActionListener { JButton button; JLabel label1, label2, label3; JTextField text1, text2; Container con = …

Member Avatar for masijade
0
113
Member Avatar for PrAsTiWaRi

Hello All, I am trying to compile the C++ program. But I am getting weired compilation error. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1>------ Build started: Project: HelloPras, Configuration: Debug Win32 ------ 1>Compiling... 1>HelloPras.cpp 1>c:\documents and settings\prash\my documents\visual studio 2008\projects\hellopras\hellopras\hellopras.cpp(15) : error C2819: type 'JavaVM_' does not have an overloaded member 'operator ->' 1> c:\program …

Member Avatar for jencas
0
493
Member Avatar for muusa

hi , i am a new bee to linux and require help in compiling and running java programs in fedora8. have i to install the jdk and the compile or run the program or . i require help

Member Avatar for sureronald
0
115
Member Avatar for codered152

Hi can u call an Instance method from the constructor in java. thanks for your help.

Member Avatar for codered152
0
92
Member Avatar for andr3a

Hey Guys Can anyone help me with JavaBeans The error says my Bean cannot be resolved to type. Any solutions? Thanks in advance

Member Avatar for jwenting
0
57
Member Avatar for dmanw100

Is there any way to clear the screen in a console app? I noticed that System does not even appear to have a system call similar to the system("COMMAND"); of C++. Any ideas?

Member Avatar for jwenting
0
96
Member Avatar for creativehacker

150 html files are in a folder on a windows machine.Among them,content of some files (not the file names)contain the sentence "Hello World??". How to count no of such files using java program

Member Avatar for jwenting
0
102
Member Avatar for maunikdesai

How to pass String object as an argument? Whenever I try to pass any String as an argument error msg occur as - ')' expected

Member Avatar for Ezzaral
0
198
Member Avatar for dmddinesh

i want to know how to convert pdu mode sms to text usivg java. pls anyone help me. thnks.

Member Avatar for stephen84s
0
612
Member Avatar for kookies

Hi, essential kindly helped in getting a javascript imageflow menu to display pictures inside an inline frame. Problem i have is that everything is displaying wrong on the page. Here's what i have currently code wise, i most likely have things in the wrong places i.e divs ? [code] <!DOCTYPE …

Member Avatar for kookies
0
110
Member Avatar for dav555

The DefaultListSelectionModel provides the method setSelectionInterval(int start, int end) to select an interval. But how can I select multiple intervals?

Member Avatar for stephen84s
0
180
Member Avatar for letlet_pogs

public class Calculator { public static void main(String[] args) { String s; // string that holds the expression s = JOptionPane.showInputDialog("Enter a simple infix expression: "); } } public static String infixToPrefix(String result){ JOptionPane.showMessageDialog(null,"Invalid character in expression: " + c); } hello guyz,,actually this is not my whole code,,i just …

Member Avatar for masijade
0
107
Member Avatar for pajeko
Member Avatar for J-KeRcA

Hi, I'm new in Java, and I'm supposed to make a program that ask the user for her/his date of birth..... I know that the months have a specific values and that the first month of the year is January which value is 0 ... so when the user enter …

Member Avatar for masijade
0
78
Member Avatar for senthil12345

hi, i have a problem while reloading the apllet with SwingWorker. it works fine in first time, if i reload with the same browser means the Applet window is opened but if i clicking the Download Button means it shows an Exception like "illegalThreadStateException" and it wont perform the copying …

0
57
Member Avatar for ceyesuma

is this true? hql use xml to create results that hibernate can use. Simialar to the SQL? here is what I need in a table [code] SELECT i.instr_lname,b.book_num,s.stu_lname,b.book_start_date,b.book_start_time,b.book_end_time FROM instructor AS i,booking AS b,student AS s where i.instr_num=b.instr_num AND b.stu_num=s.stu_num; [/code] here is the mapping classes to the (obj)entity classes. …

0
53
Member Avatar for Tootlol

Basically, I am trying to solve a problem a textbook. The book requires me to use karel J robot to develop programming principles. So the problem is correctly the following code so that the robot will do this: attached This is the code I am suppose to fix. Currently the …

Member Avatar for dmanw100
0
122
Member Avatar for nojtb

My Code has a problem, either if my first void is static or not i get a error that i cant seem to fix. This is the error i get if the void is static [CODE]Java Compiler By Noj All underpreciated java will soon apear All errors within java files …

Member Avatar for nojtb
0
136
Member Avatar for dsnj202

I compiled this at school and swear it ran like a week ago. That was on a PC using Textpad, now I am on a mac using TextMate and I keep getting this error: class Checkerboard is public, should be declared in a file named Checkerboard.java public class Checkerboard extends …

Member Avatar for jwenting
0
140

The End.