32,204 Topics
| |
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 … | |
Hi All, Below is the code I use in an Unix environment to connect to my organization's mail server(This is to read mails in my Inbox). [code=Java] import javax.mail.*; import java.sql.*; import javax.mail.internet.*; import java.util.*; public class readm { public static void main(String args[]) throws MessagingException { //Properties props = … | |
Hi! I am a student taking my first computer science course. The course uses Karel J the robot to teach object oriented programming. However, after acquiring the library I was not able to find the "methods" or "behaviours" for the robot. According to the lecture notes they are suppose to … | |
Hi, trying to understand this exception.. Happened after i removed and the jar files [code] 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: Hibernate 3.3.0.SP1 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: hibernate.properties not found 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: Bytecode provider name : javassist 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: using JDK 1.4 java.sql.Timestamp handling … | |
well, i started generating my code through Textpad, and when i run it, it runs smoothly, but if i am to create the jar file through Netbeans, it becomes a disaster and returns a null error. i cant even figure out where the error is... here is the part of … | |
i have a method that saves an object to file : [CODE=java]public void Save() { if (canSave) { JFileChooser fileChooser = new JFileChooser(); if (fileChooser.showSaveDialog (this) == JFileChooser.APPROVE_OPTION) { ObjectOutputStream out; try { out = new ObjectOutputStream (new FileOutputStream (fileChooser.getSelectedFile ())); out.writeObject(this.game); out.close (); } catch (IOException ex) { } … | |
hello guyz,,,i just want to ask if it's possible to put "my picture" in my code..at the JOptionPane?? ex: if i run my program,,the first that will appear is my picture before i start to input anything in the JOptionPane.. is it possible??? i hope you can help me guyz,, … | |
i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on reading the rest and writing it to clients.tmp. after i have … | |
Hi, learning hibernate but still experiencing some errors and exceptions ... [B]My User.hbm.xml[/B] [code] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.genuitec.hibernate.User" table="SNX_USERS" > <id name="userId" type="java.lang.Long" column="user_id" > <generator class="increment" /> </id> <property name="firstName" type="java.lang.String" column="first_name" length="20" /> <property name="lastName" type="java.lang.String" column="last_name" length="20" /> … | |
Hi I was wondering if somebody could help me i am completelty stuck I want to read in triangle measurements from the command line check if the tri is square then when the user is done print out the amount of squares. the user would signfy that s/he was done … | |
Hello. I have built a hibernate project and the dropdown list and the table load data to the web page but the drop down list is not poulated with the names (derived from the xml id) There is a lot of code to paste. Is there someone that could help … | |
Hi, I hav a problem at hand...plz help out. I am not allowd to compuet o(n)...i need to compute the algorithm in O(log n). Suppose there is some number N, and there are 7 elements in another array. Each element in the array is given another special number(one number per … | |
| hi, i need urgent help with my code. My program, which converts word strings to its number equivalent, only works with special cases. Example: "nine hundred ninety nine thousand nine hundred ninety nine" outputs 999999. (which is correct.) But try inputting "nine million nine hundred ninety nine thousand nine hundred … |
Hi guys, the thing is: suppose that there is an application (assumed that we are using Windows) waiting for some input data. This could be a password, path, search criteria (for example in the case of Google). I would like my Java application to 'enter' some text, and then to … | |
Hi, I would like to know more about deploying Java application on mac.... I am going to start preparing a Java application which will be used by normal non-technical persons on mac. So, is it possible to create a setup like thing for users on Mac for a Java application. … | |
I presume that by back button you are referring to a browser and you have implemented that with JSPs. In that case when the username and password are correct, save the username in the session before you redirect to the next page. Then when you go to the next page … | |
Hi, I really do need some help, and it seems, that this is the best place to get some. A while ago, i was looking for an alternative to stage 6 DivX hosting, when i came to a side which suddenly smashed a whole lot of spyware on my computer. … | |
Hello, I am trying to allow my program to accept multiple transaction records. I have created a file creator (CreateData) to populate two text files (oldmast.txt, trans.txt). CreateData will need to be run to create these two files. I have also created a file matching class (FileMatch) to process and … | |
this is confusing, I wrote this a while ago, and it didn't work right, I am almost sure that it is a simple small error somewhere that I am just missing. when i wrote it I didn't think that it would be good to post it here because of the … | |
In this I jave already stored the previous exam details of the student in the database.I just fetch the datatbase are create the full exam form report of the student. What can i do different in this?? Plz help me out.... After user logins to a page and then log … | |
I thought I understood how this worked, but maybe I do not. I intentionally left a field out of my compactdisk class (artist) so that I could create a sub class later, impliment it, and see how that whole thing worked. Sounded simple, I still think it is, I just … | |
how can i get an array to wrap around?? ex: array String[] whatever = new String[3]; if i ask for the whatever[2] +1 I want it to give me 0 not 3 and if i ask whatever[0] - 1 i want it give me 2 | |
I'm making a Servlet application using the a MVC-like implementation, however I'm slightly confused on how I should delegate concurrent modification of the state of the Model object? I intend to use a database to hold information from a given session for a particular individual (the data will be retrieved … | |
Hello all, I want to find the external edge of an object. I used Canny, but it finds me any edge (inside edges as well) When I play with the thresholds somtimes it pass skip the external edge but finds an internal one. Solution anyone? Thanks | |
Hi, I've got a method that returns 'null' for a linked list [CODE] public LinkedList<names> Relate(names Student) { return null; [/CODE] How can i get it to return an empty List, so that I dont get a null pointer exception? Thanks in advance, | |
I(under graduate ) need an idea for my final year project. I hope to do an agent sytem.Can anyone give me an idea about a project? |
The End.