JTextArea update VERY slow

1192 byte By tony.thompson at 2007-9-26 1:13:21
I have a dialog that a JTabbedPane with several tabs on it. One of the tabs contains a JTextArea that I have redirected System.out to. The JTextArea is attached to a JScrollPane and then to the JTabbedPane. The class I created to send System.out to the JTextArea does a JTextArea.append() to ...

HOW TO CREAT SLIDERS?(PLEASE HELP)

1938 byte By shahzad5 at 2007-9-26 1:13:23
Hey1i have to craet three sliders (in three differet panels)so that when i get the current date the three sliders are set in a way that Year slider matches the current year,the monthe slider matchs the current month and the date slider matches the current date.If some body could give me a start ...

JAR Problems: Failed to load Main-Class. HELP!!!

512 byte By jpanchal at 2007-9-26 1:13:24
I have a manifest file called MyManifest.mf that has the following content (exactly the way it is between the double quotes). "Manifest-Version: 1.0Main-Class: BankSession.class"Then I run the following command:>jar cmf MyManifest.mf MyBank.jar *Then I try to run my application with ...

wait & notify?

675 byte By mbongcojr at 2007-9-26 1:13:25
Hi,i have a thread class that listens for incoming socket connections and registering them in an array via another class. BUT, my code is really hogging up cpu and i'm not sure how to make the code more efficient. any tips is greatly appreciated.public class Acceptor extends Threadpublic ...

what can i use instead of sockets?

265 byte By andreycr at 2007-9-26 1:13:26
I'm programing a client-server application but the comunication with sockets fails. I'm getting a lot of missing packages. I don't know what is the cause of it!!can some one help me?best regards.Andrey AlvaradoCosta Rica

How to disable maximize button on a window?

127 byte By anub at 2007-9-26 1:13:29
Can anyone please tell me how to disable the maximize button (on the top right corner of a window)in java?

java.awt.MenuBar: How can I interrupt the user?

397 byte By audus at 2007-9-26 1:13:38
I have a dynamic menubar (it can change content while the application is running). If the user is navigating in the Menu-system at the same time as the menu-content is changing, the jvm crashes (windows says that java.exe has performed an illegal operation). Question:can the program close a ...

Jdialog in Japplet

286 byte By rduraika at 2007-9-26 1:13:43
Hi , I have a class which extends JDialog I instantiate this class from JApplet. it compiles properly but at Runtime it get the error saying thatjava.lang.NoSuchMethodError: EventWizard: method <init>()V not foundcan somebody help me about this?

problem with repainted split pane

415 byte By chrisioannou22 at 2007-9-26 1:13:48
i have a JPanel within a JSplitPane and within it a JPanel..i have a function whice stretches the size of the JPanel...but the SplitPane seems to call repaint() an extra 2 times which causes the JPanel to be returned to it's original size..Is there a way i can stop this extra repaint with ...

How do you install and run Java HTML converter 1.2?

391 byte By philcollins at 2007-9-26 1:13:49
Hi,I just downloaded the Java plugin HTML converter (version 1.2) and after I unzipped the file, there was no exe file to run. Am I supposed to move all the files and directories somewhere else and run something at the command prompt?I wish they had better documentaion about this. I've ...

Installation?

4128 byte By BouncingSoul at 2007-9-26 1:13:52
Im posting this on behalf of a friend. I am a Java programmer besides programming in other languages, but i have no clue how to go about distributing an app or creating an installation program. Here is what he wrote me. Any suggestions would be a great help. ThanksIt's really about deployment. ...

generic data types

494 byte By tjdeep at 2007-9-26 1:13:57
Hello,Does anyone know how to create a generic container of primitive data types? I'm reading in data from a binary file; its got a header that tells me the data type of the binary data. I realized that I cannot use a void[] data as a generic data type; so I tried creating an empty array of ...

Java certification?

471 byte By MatLL at 2007-9-26 1:13:59
Hi all,I'm interested in becoming a certified java web developer. I have experience with server side Java programming, JSP's, servlets, HTML and have done a lot of work in the web sphere development environment. Is there a certification available that talks speciifcally to this type of ...

Finding the Size of a Window

402 byte By thistleS at 2007-9-26 1:14:04
I have written code to display images inside a JFrame. I have code that will resize the image, but I would like to link this resizing to the user resizing the window . Is there any way to monitor the size of the window. I have tried adding adding a MouseMotionListener to my JFrame, but it only ...

developing on a mac?

216 byte By manjix99 at 2007-9-26 1:14:05
is it even possible to develop on a mac? i'm trying to teach myself java and only have access to a mac. besides buying a pc of some sort, what steps will i need to take to be able to develop on my mac?

Help! Can't execute a program using 'java' command...

378 byte By turtle2520 at 2007-9-26 1:14:08
Whenever I try to execute a program by typing in:java programnameI get the following error:Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.3', but'1.2' is required.It doesn't matter what program I try, I get this message on all of them. I have the ...

Detecting what OS the application is running on ?

184 byte By geotdw at 2007-9-26 1:14:14
Hello.Can anyone please let me know of a way that i could detect on what OS is my application running on. For example if i'm running on MAC, WIndows or Linux ....

HTMLEditorKit and POST

386 byte By PriyaPPatil at 2007-9-26 1:14:16
Hi,I am displaying a html page/form in a JEditorPane.This is used for file upload. However, inspite of specifying the enctype to be multipart/form-data, the data sent to the servlet is not in multipart format. Does anyone know what exactly happens when the submit button is clicked for a form ...

drawString issue

440 byte By spany at 2007-9-26 1:14:22
Why is it that you can use Graphics.drawString on a Graphics Object but when the Graphics object was obtained from an image created from an array of pixels, drawstring cannot be applied? I am assuming internally both types of graphics devices (ie ones created from system devices and ones ...

Trapping <Ctrl-F4> to prevent accidental loss of data

2113 byte By CharlesHarrison at 2007-9-26 1:14:23
Writing an MDI program using a DesktopFrame and multiple JInternalFrames in the recommended way. I've created ActionListeners to trap File, Close and File, Exit and the Close button on the internal frames, but the user can still lose all their work by pressing <Ctrl-F4>! How can I bring ...

how to set initiao heap size?

172 byte By bravlee at 2007-9-26 1:14:26
Today ,when I start javac,it appear a error:Invalid initial heap size:-Xms8mcould not create tht java virtual machineThank you very much.

Help... Java on Mac OSX

597 byte By andie6 at 2007-9-26 1:14:31
I'm trying to learn Java2 on my mac and I've run into a problem. I'm trying to use the terminal command line to compile and run applications w/ the jdk. i copied the source code for the generic "HelloWorld" app but when I try to compile it javac HelloWorld.javait says it gives me an error ...

Anyone know that? need help1

222 byte By james5z at 2007-9-26 1:14:38
I want take a test for Java Certificate, I think I am ready. But my problem is I don't know anything aboutthe test. Anyone can introduce me some web-site where I can take a similar test?

how to install Excelsior JET ?

330 byte By graduznick at 2007-9-26 1:14:47
when i'm trying to install Excelsior JET pro it says : Click browse and select Sun JDK 1.3.0_02/1.3.1 home directory ...when i select it always says : The directory is not Sun JDK 1.3.0_02/1.3.1 home directory ......i have JDK 1.3.0_03 installed (working good for me);what should i do ? ...

How to make JFrame ToFront to all applications

352 byte By k_ramanadham2 at 2007-9-26 1:14:49
HIMy problem is i have a JFrame where in i have a JCheckBock and when i check it my frame should be top from all applications opened(like MS Word,notepad or any window) and when it is dechecked it should be back when any application is opened . I tried in solaris by using toFront() but no ...

How to make JFrame ToFront to all applications

352 byte By k_ramanadham2 at 2007-9-26 1:14:51
HIMy problem is i have a JFrame where in i have a JCheckBock and when i check it my frame should be top from all applications opened(like MS Word,notepad or any window) and when it is dechecked it should be back when any application is opened . I tried in solaris by using toFront() but no ...

How to add JCheckBoxes with different text in JTable urgent...

188 byte By k_ramanadham2 at 2007-9-26 1:14:52
HII have a JTable and where in each cell i should add one JCheckBox is it possible to add JCheckBox to a JTable without taking an renderer.any suggestions please......

subclassing event objects

273 byte By paul_sun at 2007-9-26 1:14:58
Is there any purpose to creating subclasses of event objects such as EventObject or its subclasses. I thought that event objects are created at runtime to indicate events. Can events be created by an application? If so, please provide a simple example.

Hang Man

370 byte By JLam at 2007-9-26 1:15:02
I am attempting to develop a hang man game but, I can't get the String Buffer to work in seperating my characters. When prompting input from the user(The word to be guessed) how do I put the individual characters of the inputted word into an array. Do I have to use the String Buffer at all?Any ...

Help! Can't use java command to execute application

283 byte By toasterbob at 2007-9-26 1:15:06
I can compile using the javac command and that works fine. But then it can't seem to find the class that was just created.I get this message:"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"Please help!!!Thanks!

system.out.println

532 byte By shris at 2007-9-26 1:15:08
I need solution for the following -I want system.out.println statements to work in its usual way if a user-defined flag is set in a properties file.In case the flag is not set then I don't want statements to be printed anywhere at all.One option could be - Define and function where it will ...

which statement holds good for ..and why ?

240 byte By chandankalra at 2007-9-26 1:15:11
class CheckOperator{ public static void main(String args[]) { boolean b1 =false; boolean b2 =true; }}a)b1 == b2b)b1&b2c)b1 | b2d)b1 || b2

How to get array's class

173 byte By kfsong at 2007-9-26 1:15:20
Hi, I have an Byte[] array, how to get its class, because I need to use JTable.setDefaultRenderer(class,renderer) method.Thank you for help!Janet

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:21
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:22
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:23
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:24
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

Adding ActionListener, Where am I wrong?

5920 byte By reddyumamaheswar at 2007-9-26 1:15:27
Hello, Please see the two java files that are working fine, but I need to add actionlisteners to RectangleButton.java file, Could any one please help me? Getting text from textfield of superclass into the a string in the sub-class is my problem.1st Fileimport java.awt.*;import ...

skins in java

228 byte By nikki_rohit78 at 2007-9-26 1:15:28
hi readers....i have a qus if you can solve..i have to make skins in java in swings like winamp is having skins and we can choose one from themm.do help me doing so in java(swings)...thanxrohit

Why doesn't this code work? (Copying rows across JTables)

8707 byte By javaqq at 2007-9-26 1:15:32
For a couple of weeks I have been attempting to copy the data in one row of one JTable to a second table, without success. Usually I get an ArrayIndexOutOfBoundsException, even though the target table contains more than enough rows to accomodate the copy. Here's what I have done: I stripped ...

add movies in java

61 byte By edouard_g at 2007-9-26 1:15:37
Is it possible to add movies (.mpeg) in java ?

How to create a .bat file

425 byte By MattTheSwede at 2007-9-26 1:15:39
Hi,I want to transfer and run my program on a computerthat don't have JDK. I want to create a .bat file orsomething like that. How exactly is this done? I guessI have to include all the javaclass files that my programis using. Can I put everything in one directory and thanzip it and create the ...

codes!!

80 byte By Dnw at 2007-9-26 1:15:40
someone can plz give me a simple code ofJava3D and Commapi?

How can I do that ?

280 byte By under31 at 2007-9-26 1:15:42
Hi ! is it possible to change the color of a charactere only on a JTextField ? For resume, i want text with letters in Black, and others in Grey, but in the same JTextField.I know setForeground(), but it is not what i want ...Thanks in advance !

Problems resizing JButtons

244 byte By carrolf2 at 2007-9-26 1:15:47
Hi. I have a GUI with a JPanel to which I have added 43 JButtons. I use a for loop to add the buttons but I cannot set the size of individual buttons. I want two of the buttons to be bigger than the rest. Can anyone please help me

ROW_HEADER of JScrollPane

77 byte By kfsong at 2007-9-26 1:15:50
Hi, who has ever used ROW_HEADER of a JScrollPane? Janet

How do I know that there are double-byte characters in s String?

1054 byte By dong721 at 2007-9-26 1:15:55
Hi!If I have a String that contain English and Chinese words,How do I know that the String contain double-byte characters(Chinese words)?Following is my method and the problem I suffered...String A = "test(double-byte chinese)test";byte B[] = A.getBytes();if(A.length() != B.length) ...

JList issues

234 byte By carrolf2 at 2007-9-26 1:15:57
If I have a JList containg say 10 stages of a test procedure, is it possible for me to have the members of the list selectable (JCheckBox) and also can i set the background color of a list item.with thanksF

package diagram

347 byte By youbin1 at 2007-9-26 1:15:59
Hi, friends,I would like to draw a package diagram for my Java sources (I have about 3000 Java files and 20 packages).The package diagram will be used to show the dependence between the packages.However, tool like Rational Rose does not support this.Do you have any suggestion?Regards,Youbin ...

CHECK BOX not coming in TABLE : VERY URGENT

14068 byte By dhir_sanatkumar at 2007-9-26 1:16:03
Hi all,Please help me.. I created a table with four clooumns. everything is working fine , but problem is in lat column I want to show CheckBox.. But it is printing "java.lang.object@4121f" like values.I also implemented method public Class getColumnClass(int c){ return getValueAt(0, ...