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 ...
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 ...
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>
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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>
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 * ...
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 ...
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 ...
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 ...
251 byte By
_stevea at 2007-11-27 11:54:16
<p>since java is now open source, can we get the JVM/JRE sources and have them built from source ?</p><p>im looking for the source code, i know it exists but still cant find it . if anybody knows where to find it and how to build it please tell me</p>
Hi everybody,i want to set editable a combobox and set selected(highligted) the first index when i pressed F2. The code i write below;comboBox.addKeyListener(new KeyAdapter(){public void keyPressed(KeyEvent e) {if(e.getKeyCode() == KeyEvent.VK_F2){//?comboBox.setEditable(true);}}});how can i set ...
53331 byte By
BuggyVBa at 2007-11-27 11:54:02
Hi everyoneI have a undecorated JDialog with custome resize code. Here is a part of my codeframe.setUndecorated(true);frame.addMouseListener(new MouseListener(){public void mousePressed(MouseEvent e) {sp = e.getPoint();compStartHeight = frame.getSize().height;compStartWidth = ...
4224 byte By
Sarjaya at 2007-11-27 11:53:36
Hi...I have a issue using JTextPane. When i given more than one space between characters and reseting the same HTML text, multiple spaces are converted to single spaces.Steps to produce the above issue :-1. Run the below.2. Exter some text=>more than one space=>some text again.3. Click "Show HTML" ...
Hi,This is my code, I could not find the solution of my problem,--package propertiesdemo;import java.util.*;public class Main {static void displayValue(Locale currentLocale, String key) {ResourceBundle labels = ResourceBundle.getBundle("LabelsBundle",currentLocale);String value = ...
This is the code for text auto completed Hi this code will check only the first entered text any one help me out check each wordie if we entered "o" the text organization will display after we gave a "space" then enter the "o" again its not displaying the "organization again, any one can help me ...
I have 2 questions, somewhat related:Question 1:I have a jLayeredPane with a number of jLabels of imageIcons. I need to resize the top imageIcon when I move a slider. To get the top component on the jLayeredPane, I use: Component topComponent = layeredPane.getComponent(0);However, I can't figure ...
I want invoke another java application dynamcally through user defined jar and arguments in the same JVM as my application running. I can find the main method from the jar file, and invoke it successfully. But there are two questions:1. When the invoked application exits, my application will exit ...
460 byte By
HMRMSRa at 2007-11-27 11:52:31
Help!!! I have been playing on pogo.com without problem for months now and all the sudden I am receiving the error stating The Java Runtime Environment cannot be loaded." Another error box pops up after I close the internet browser, but I don't know what it says. I have completely uninstalled the ...
Hi,Assuming I have a Jtextfield in one of the class1 extend Jframe,how do I update the jtextfield so that it could up make accessible by other class and continuously updated to reflect the input for value rom another class2. In other words very much similar to the observable model view conceptclass ...
On Windows, each new JFrame created also creates a new taskbar at the bottom of the screen. And for the task bar not to show using a JFrame, editing has to be done to the native code, correct?Well is there a way to have the task bar appear as one and not spread out across the bottom of the ...
483 byte By
Cosaia at 2007-11-27 11:52:03
I searched the forum but I could not find a method that is something like changer(int row,int column, Color color).the examples show that I should rewrite a method of a class which is derived from defaultTableCellRenderer. In that case as I understand I should wire the algorithm to change the cells ...
well, I'm facing a problem with my jar I was creating a digital clock application , I used the class loader to load a font that is not rgestered with my system and it runs perfectly from the netbeans , but when I build the jar it doesn't work as it says that there is a NullPointerException as the ...
Hi everybody,I'm trying to center a line of text designated as a divider on a JTextPane, and only that text. For some reason, though, when I do that, it centers all the text below the divider on the JTextPane too. The relevant code for this is:MutableAttributeSet bodyCenter = new ...
I am developing a GUI where I will be having several rows of label/textfield pairs ( each row will have at the most 3 pairs ). I just started with 2 rows. The first row has 2 label/textfield pairs and the second row has 3 label/textfield pairs. I am running of out ideas on how to make them aligned ...
631 byte By
PingGuya at 2007-11-27 11:51:40
Is there a way to get programmatic control of the actual text editor that is used by JTable when you are modifying text within the table? I want to be able to change the default behavior of the editor but so far I can't find a way to even access it. I've been playing around with the ...
1868 byte By
SDNJavaa at 2007-11-27 11:51:23
I have a text field (java swing) and a search button.When the user hits RETURN, the text field fires an action event.Is it possible that as soon as I enter a character in the text field, it fires an action event without hitting the RETURN key or pressing the search button?What I want to achieve is, ...
I have 2 monitors and I want a JFrame to be displayed across the 2 monitors.when I force the frame to be set with the size it seems to have the dimensions I entered but does not span across the 2 monitors.JFrame frametest = new JFrame();frametest.setPreferredSize(new Dimension(2280,1520)); // width ...
Hello,This follows my previous post regarding "How to add JCheckBox objects to JComboBox". With Ice's help, I've managed to make some good progress. So now I'm having other issues as I go further.In the code below, I have the following issues:1. My JComboBox renderer closes after each selection ...
320 byte By
fla22a at 2007-11-27 11:50:57
How to un-install those java XXXdemo http://www.airfirst.ch/b2/Ecran05.pngNone result using the remove button ("Supprimer" button in the screen shot).I got them launching demo (orange Launch button) ...
When i update a cell data of JTable after sorting it by one column, though the data gets updated but it does not remain sorted and the data appears back as it appeared for the first time. How can i ensure that the data table structure does not change once i update a cell apart from the cell which i ...
629 byte By
Alantiea at 2007-11-27 11:50:43
I already find that refreshing JTree trouble is usual question - but never seen answer on my problem.i am using JTree and model implementing FileTreeModel. i have popup menu with "delete file" for example and when i m pushing it - i do the following code:boolean success = (new ...
Wy FreeBSD not run client sgd?SGD client (sgd web) and sgdclient will be supported by SUN SGD?Can I compile the client for run in FreeBSD 6.2?Best Regad'sMarcelo Moreira Martins marcelo.martins@m3system.com.brTechnical Consultant - Tarantella Systems EngineerSE- Systems Engineer - M3 System ...