| Thread | Last Post | Replies |
|
| java.Lang.Integer <-> int | 23 Feb 2005 15:17 GMT | 2 |
What is the difference between "java.Lang.Integer" and "int" and how to conwert from one to another. Duzy.
|
| thread/interrupt question | 23 Feb 2005 13:36 GMT | 1 |
Ok, I am writing an applet and I spawn a thread when a certain menu item is selected in order to do some computation without tieing up the UI. It looks something like this: public void actionPerformed(ActionEvent evt) {
|
| How does a thread call a synchronized method?? | 23 Feb 2005 10:51 GMT | 17 |
If a thread needs to call the methods notify() and wait() it has to own the lock. The only way it can own the lock is by invoking a synchronized method. But typically the synchronized methods lies in another class and not in the threads themselves. My question is then:
|
| Newbie Date SimpleDateFormat HELL | 23 Feb 2005 09:34 GMT | 5 |
I'm trying to create an ANSI date string to use at the end of a file name. "20050222" for today, for example. This is trivial in C, and it's probably trivial in Java too but I'm getting bogged down into Date, SimpleDateFormat, FieldPosition hell.
|
| Locking the PC (Screen) with Java??? | 23 Feb 2005 08:39 GMT | 2 |
does anybody know here if it is possible to lock the system with java? i would like to lock the screen respectively the complete system with my java (1.4) application, so that the user can't do anything until he entered the correct password. Even Ctrl+Alt+Del should not be ...
|
| Question on Syntax differences between application and applet | 23 Feb 2005 08:35 GMT | 7 |
I'm trying to teach myself Java from an Intro textbook. The book gives an example of creating a simple application, and then converting it to an applet. It displays a line of output in the application like this:
|
| What to remove? | 23 Feb 2005 06:06 GMT | 2 |
I had installed Java earlier on my computer for an intro class that I had taken. But now the only reason I want Java on my pc is for internet browser stuff like websites that use it to display their poll results and other graphics like that. So I wanted to know, can I safely delete ...
|
| add item to the array of string dynamically | 23 Feb 2005 04:32 GMT | 3 |
I want to ask if we can add item to the array of strings dynamically? String[] s = {"Joe","John","May"}; If I want to add another name called "Tim", how to do that?
|
| non-static variable in a static context | 23 Feb 2005 00:25 GMT | 5 |
I'm trying to compile a program which compares different types of sorts. I have different classes containing each sort. when I try to create the objects to do the sorting in the main method, it gives me an error that says "non-static variable this cannot be referenced from a static
|
| Get Image from Applet Window......Newbie Too | 22 Feb 2005 20:49 GMT | 3 |
Hey, I have a question for all the Java gurus. I have written an applet like the scribble applet that is floating around the Net. I need to be able to grab the contents that the user has scribbled or drawn in the applet as an image so that I can do a base64 encoding to it
|
| @SuppressWarnings("unchecked") | 22 Feb 2005 19:22 GMT | 1 |
I can't seem to get the @SuppressWarnings("unchecked") to work. Here is my test program. public class Tryit { @SuppressWarnings({"unchecked"})
|
| continuation | 22 Feb 2005 18:56 GMT | 4 |
i'm helpless in this area. I really tried and I'm still stuck for the 1000th time. The textbook, class exercises and notes do not seem to help at all...can anyone help me spot my mistake please? import javax.swing.JOptionPane;
|
| Java Applet talks to DHTML? | 22 Feb 2005 16:20 GMT | 2 |
Is there any way to use Java Applet to communicate with DHTML? say I click a button on my Java Applet, it renders some text on the DHTML on the same HTML page.. is it possible? C.P.
|
| J2ME questions? | 22 Feb 2005 12:32 GMT | 1 |
I have some questions regarding some probs I am having with a J2ME project and processing Hindi text. Is this thie right newsgroup or is there a J2ME specific one? I did a search on my news server with no luck.
|
| Replacing apostrophes for an sql statements | 22 Feb 2005 10:50 GMT | 3 |
When doing SQL statements apostrophes mark the start and end of a text field, accordingly any apostrophe in the text must be handled. So here's a code snippet showing how I handle this: int isApostrophe = title.indexOf("'");
|