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 ...
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 ...
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 ...
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 ...
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
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?
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 ...
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?
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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?
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 ...
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 ....
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 ...
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 ...
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 ...
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.
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 ...
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?
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 ? ...
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 ...
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 ...
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......
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.
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 ...
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!
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 ...
class CheckOperator{ public static void main(String args[]) { boolean b1 =false; boolean b2 =true; }}a)b1 == b2b)b1&b2c)b1 | b2d)b1 || b2
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
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
Is it possible to add movies (.mpeg) in java ?
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 ...
80 byte By
Dnw at 2007-9-26 1:15:40
someone can plz give me a simple code ofJava3D and Commapi?
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 !
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
77 byte By
kfsong at 2007-9-26 1:15:50
Hi, who has ever used ROW_HEADER of a JScrollPane? Janet
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) ...
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
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 ...
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, ...