32,199 Topics
| |
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: … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
please I want to recover the windows's process with java how can I do thank | |
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. | |
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 … | |
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. … | |
how to generate xml document from data in database..please explain with an example? | |
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 = … | |
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 … | |
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 | |
Hi can u call an Instance method from the constructor in java. thanks for your help. | |
Hey Guys Can anyone help me with JavaBeans The error says my Bean cannot be resolved to type. Any solutions? Thanks in advance | |
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? | |
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 | |
How to pass String object as an argument? Whenever I try to pass any String as an argument error msg occur as - ')' expected | |
i want to know how to convert pdu mode sms to text usivg java. pls anyone help me. thnks. | |
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 … | |
The DefaultListSelectionModel provides the method setSelectionInterval(int start, int end) to select an interval. But how can I select multiple intervals? | |
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 … | |
| |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … |
The End.