JTextField cannot capture value from different classes

2683 byte By arjensena at 2007-11-27 11:54:26
Hi all,The solution is it have two different classes, class 1 and class 2. I wan to send a value from class 1 to the JTextField in the class 2. I had try many times, but no idea for it. The value can send from class 1 but textfield in class 2 cannot receive. Anyone got idea. Below is the code:Class ...

Problem adding Child in AbstractTreeTableModel

479 byte By Irfan_dcrtia at 2007-11-27 11:54:49
Hello,I have a AbstractTreeTableModel. Root|Parent|Child 1Adding of any number of parents is working fine. But When I try to add the second child, the child is not shown in the view. But I can see that the CHild 2,... gets inserted into the Model? Can anyone help me please in resolving this issue?I ...

Heavy JInternalFrame will not be fixed?!!

333 byte By Dmitria at 2007-11-27 11:55:00
HelloI just got the message from the bugdatabase: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4154448Old State: In progress, request for enhancementNew State: Closed, will not be fixedAfter more then 10 years of waiting it will not be fixed?!!!! f...Can somebody explain me ...

Something about how to locate the coordinates

1086 byte By jack_hzya at 2007-11-27 11:56:24
Hello guys, I got problem in locating coordinates, and kinda hoping anybody can help me out.I am intend to draw a circle and small 3D Rectangle. I want to use a Timer to rapaint the painting and make the rectangle can move on the circle SMOOTHLY, so I use the code xRec = (int) xCentre + radius * ...

JFrame addWindowListener doesn't work -- alternative close button action

936 byte By frost986a at 2007-11-27 11:56:27
Hello,I am trying to get a program to save some data to a DB before exiting; So I need to assign a customer listener for the close button of the program.This is that what I have tried so far:private void initComponents(){this.addWindowListener(new WindowAdapter(){public void ...

Show always last line on textarea

638 byte By asilazmaza at 2007-11-27 11:56:37
Hi java world,i have a textarea as viewport of a scrollpane. When new text is added into text area , the lines go under scroll. I want that when the the lines are added, always my last text (last line) is shown. How can i do this.?scrollPane1 = new JScrollPane();textArea1 = new ...

FileChooser - select only directories but still see files?

394 byte By allelopatha at 2007-11-27 11:56:50
Is it possible to have a JFileChooser that, while only allowing a directory to be selected, still shows files in the text area?If I set this:fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);it indeed allows only directories to be selected, but I can't see files in the directory ...

Placing Buttons

999 byte By lesnaubra at 2007-11-27 11:56:53
I am trying to place a button in a specific location inside of an internal frame. I was thinking that I could use the setLocation method but that doesnt seem to work. The button's picture icon is not showing up at all. I think it is because I need to seta certain layout for the content pane first. ...

file contents in jtextarea

1554 byte By jonathanca at 2007-11-27 11:57:28
i have the following program but i need to edit it in order to open the text file and display its contents in a jtextarea anyone know what i have done wrong so far and what i need to change import java.io.*;import java.awt.*;import javax.swing.*;//this is a cprogram i have created so the users data ...

IE 7 problem with jre version 1.4.1

465 byte By fishgoa at 2007-11-27 11:57:36
We are experiencing a problem with a site that is running java applets. It requires version 1.4.1. After logging into this site, a second window should appear. There are several times when that second window will attempt to open but then closes immediately. The only fix that I have found is to open ...

FileRenderer

426 byte By tarmenela at 2007-11-27 11:57:39
Hi there all,I'm trying to create a Jlist that will show either a folder or file that I have added to it from a JFileChooser. I've been able to create my own ListCellRenderer but was wondering if there is not already something out there. Secondly I would like to create my own Cell Renderer but ...

RMI v Web Services

115 byte By sjaliaa at 2007-11-27 11:57:43
<p>hi Guys</p><p>can anybody tell me why developers always prefer to use Web Service instead of RMI</p><p>Thank</p>

JVM runs out of memory

709 byte By hballenchena at 2007-11-27 11:57:44
I use jre1.5.0_06. After open a project, my application will have no responses for out of memory. I make the installation with InstallAnywhere 6.0. I don't know how to set JVM memory options such as -Xms512m -Xmx1024m. I have 4 questions about it.1. JVM runs out of memory, I have 1500MB free ...

property change listener error with jtabbedpane

2053 byte By h2opologirly69a at 2007-11-27 11:57:49
GreetingsI have a property change listener on my jtabbedpane (2 panes (index 0 of course and index 1). my problem is when i want to run my app it gives me a java null pointer exception. I believe it is b/c it is starting the app and it see the property change of the first tab at index 0 which is ...

How to create an

1026 byte By thoto001a at 2007-11-27 11:57:53
Hi folks,I'm having a weird problem to solve.I have a JFrame, displaying some texts (JTextpane).Now, I want to open a Search dialog, entering some word into its text field, press "Search" button of the dialog and set the caret to the first occurance in the text pane that is located in my ...

Graphics2D & JTextField Problem

437 byte By kerryblue19a at 2007-11-27 11:58:02
I'm trying to add a JTextField to a JPanel which paints a bunch of lines and what not using Grahpics2D but the JTextField doesn't show up. Is there anything I'm missing in terms of functionality? The way I was adding it was in the constructor for the class that extends JPanel.CheersPS I didn't ...

Java runtime environment cannot be loaded / IE7

393 byte By mrlondona at 2007-11-27 11:58:06
Java keeps breaking in Internet Explorer 7. In order to fix this, I have to uninstall both Java and Internet Explorer, and then reinstall them, and after that it will work for a while. Eventually though, it breaks and then gives me the message "Java runtime environment cannot be loaded". This is ...

Java JRE not working on any PC

4254 byte By lurera at 2007-11-27 11:58:35
Hello!I have a customer, where none of the PC's og the servers can use Java JRE applications on the internet.I have checked and double checked all settings in the Java Control Panel and Checked it is enabled for IE. I have tried Firefox and Opera too. I have uninstalled and installed several older ...

JTextfield: Changing focus, then doing stuff

915 byte By Flavouskia at 2007-11-27 11:58:43
So I have 3 JTextFields that are essentially "connected" (I automate tabbing and such back and forth). I have no problem gaining focus, whether it be transferFocusBackward(), or whatever else. My problem is when getting the focus I cannot do anything with it like taking the letter the user typed ...

graphics method in a class extending jFrame

341 byte By dogukana at 2007-11-27 11:59:01
for example in my program i want to draw a colorful line and before using getgraphics().drawline(..) i want to set the color to something by using setcolor() method.is it possible to use the methods getGraphics().setColor(Color...) in a class extending JFrame?i have a problem here. Whenever i used ...

getResource() returning null sporadically

525 byte By hhalea at 2007-11-27 11:59:03
I am loading an XSD file from the jar doing...URL myurl = this.getClass().getResource("/com/test/sample.xsd);During testing on a few occassions the program ran for a while then getResource() returned null. Not repeatable.What other reaons besides the resouce not being found or permissions would ...

focus tranfer between panels

347 byte By javalover2002a at 2007-11-27 11:59:05
I have a panel which has two panels classes, panel1 and panel2.panel1 has few textareas/combos and panel2 also has some textareas/combs.user tabs between the fields in panel1. but when user tabs on the last field of panel1, i want the focus tranfer to panel2's first field.how do i do that, please ...

Adding external .properties files to a MANIFEST classpath

697 byte By vramdala at 2007-11-27 11:59:08
Hi all;I want to package my application as an executable jar (let's call it app.jar), but leave the config (.properties) file outside of it, so it can easily be edited after deployment. The config file should be added to the classpath, so that it can be loaded with ...

printing information in a gui

856 byte By morganista at 2007-11-27 11:59:11
Hi I want to be able to do a printout of some information that I have in gui. Does any body know any code that I could use or if there is any documentation on how to do it. I know that you can do printouts of tables but I haven't been able to find any documentation on print outs of information ...

Animations in gui

166 byte By Oleka at 2007-11-27 11:59:13
<p>Hi,</p><p>Can someone tell me how i can set some animations like the hovering in panels in xp-menus?</p><p>Or uphovering text in for a component.</p><p>regards</p>

Removing from JList

327 byte By java4life87a at 2007-11-27 11:59:27
I have a JList comprised of People object. What I want to do is when the user right clicks on one of the People objects an option comes up (in menu form or something) that says remove. Upon clicking remove, I want the person object removed from the JList.Any suggestions on how to implement ...

Putting user input into a inner panel onto one line

8419 byte By vopoa at 2007-11-27 11:59:46
Hi,I'm trying to find a way to add the JSpinner and JComboBox text into a panel. I've read some tutorials, but I still can't find a way to add my text into a panel.Here are some of the details:-when a JSpinner number is selected, it would appear in the blue bordered panel-when a JComboBox is ...