Hi, I have an application which consists of a JTextArea associated with a PopupMenu in a JFrame. I want the JPopupMenu in the JTextarea to be made invisible...
Chinnaswamiah, Pradeep
cprad@...
Jan 2, 2002 10:47 am
2712
Testing my new subscription _______________________________________________ Advanced-swing mailing list Advanced-swing@... ...
Vella, John
john_vella@...
Jan 2, 2002 3:13 pm
2713
I'm trying to update my application's toolbar so that it will automatically wrap to use multiple rows for the buttons if the width of the application session...
Vella, John
john_vella@...
Jan 2, 2002 3:28 pm
2714
Hi, I need to make "ENTER" behave as "TAB" in my JTable, I read some articles about this, but nobody has a real solution for this. I know how to achieve this...
Alex Kravets
akravets@...
Jan 2, 2002 8:51 pm
2715
Have you looked into InputMap or KeyMap? They allow you to map a KeyStroke (like ENTER) to a custom action. They typically work better than KeyListeners, which...
Farwell, Paul
PFarwell@...
Jan 3, 2002 3:12 am
2716
Hello, Does anybody know how to select an entire row in JTable by clicking on row header and keeping the functionality of being able to select a particular...
Alex Kravets
akravets@...
Jan 3, 2002 5:15 pm
2717
I have a problem with the getItemSelected() method. Here is the description of the problem: I have a JComboBox component that contains custom objects, say of...
Reinstein, Lenny
Leonard.Reinstein@...
Jan 3, 2002 6:19 pm
2718
To my knowledge, there is nothing in JComboBox that might cause such a behavior. I suspect the problem is somewhere in your code: either in your custom data...
Dmitry Beransky
dberansky@...
Jan 3, 2002 6:40 pm
2719
Does anyone know if there is a way to determine which window manager is running from within an application? I work on Unix systems and will run the application...
Marie Alm
malm@...
Jan 3, 2002 6:55 pm
2720
You are right, partially Here is the updated question: The reason this happens is that the JComboBox is editable and I use the the text field of the ComboBox...
Reinstein, Lenny
Leonard.Reinstein@...
Jan 3, 2002 8:01 pm
2721
... Oh, I see. I assume you're using the default editor component. If so, here's what happens: when you type the text into the combo editor and hit enter,...
Dmitry Beransky
dberansky@...
Jan 3, 2002 8:56 pm
2722
What are you doing in setSelectedItem? If a String is getting passed in, you need to map this back to the ObjectX that it corresponds to so that the ObjectX...
Wilson AJ
Wilson_AJ@...
Jan 3, 2002 8:57 pm
2723
Just an fyi, one of the colleagues of mine suggested this solution: overwrite the equals method in the custom class I was using. Amazingly, it solved the...
Reinstein, Lenny
Leonard.Reinstein@...
Jan 3, 2002 10:38 pm
2724
... It's not really amazing if you look at the source code of DefaultComboBoxModel.setSelectedItem() :-) public void setSelectedItem(Object anObject) { if (...
Dmitry Beransky
dberansky@...
Jan 3, 2002 11:02 pm
2725
Hi Folks, I need a program which can extract a jar file. I can not use jar.exe. Thanks in advanced. - Bharat ...
Bharat Dighe
bdighe@...
Jan 4, 2002 9:10 am
2726
Hello Bharat, A jar file is just a zip file. Use winzip, pkunzip, unzip or any other zip-compatible program to view and extract the contents. Friday, January...
Max Rydahl Andersen
max@...
Jan 4, 2002 9:57 am
2727
If you want to programmatically unzip a file from within a java program, you can use the zip classes in the java.util.zip package. ... From: Max Rydahl...
Farwell, Paul
PFarwell@...
Jan 4, 2002 4:47 pm
2728
If your UI uses the InputVerifier introduced with JDK 1.3, you might want to vote for a bug recently made public on Sun's BugParade. I'm hoping we can convince...
Farwell, Paul
PFarwell@...
Jan 5, 2002 4:19 am
2729
... Good idea, Paul! My votes are on the related #4302322 which is not available on the bug parade at the moment and has an incorrect evaluation on part of the...
Kleopatra
fastegal@...
Jan 5, 2002 11:48 am
2730
Thanks, Jeanette. I was also going to mention #4302322 also. Sun has an annoying habit of making some bug reports private. I had to twist some arms to make...
Farwell, Paul
PFarwell@...
Jan 5, 2002 3:31 pm
2731
... Never heard about private bug reports before - hmm, I noted that "not available" first in November... Do you have additional info about it? And yes, I...
Kleopatra
fastegal@...
Jan 6, 2002 12:34 pm
2732
Hello, Does anybody know how to create Swing components on the fly? Here is the thing. I am reading a file in my applet that has information about potential...
Alex Kravets
akravets@...
Jan 9, 2002 9:08 pm
2733
Sounds like you are looking for the methods getClass in the Object class and newInstance() in the Class class and use these in some combination with what you...
Marie Alm
malm@...
Jan 9, 2002 9:32 pm
2734
You can try to instantiate the class as follows if (componentType.equals("JButton")) { JButton compName = (JButton) Class.forName("JButton").getConstructor(new...
Samir
samirrandive@...
Jan 9, 2002 9:34 pm
2735
... First off all, this will not work. The value passed to forName() should be a fully qualified class name, i.e. "javax.swing.JButton". Second, since the set...
Dmitry Beransky
dberansky@...
Jan 9, 2002 9:44 pm
2736
Provided you have the fully qualified class names, like javax.swing.JButton, you can use following code to create component object on the fly using this...
Ajit Bhingarkar
abhingar@...
Jan 9, 2002 9:46 pm
2737
Urgently need an answer to this one Some characters (eg. ';', '-') are not properly copied onto a JTextPane from a word document (word 97). Works fine with...
Samir
samirrandive@...
Jan 10, 2002 7:03 pm
2738
Hi! Friends... we have made an application in Java which works fine in Windows. But when we execute the application in linux then the font in some of the ...
Vikram Kumar
vkumar@...
Jan 11, 2002 4:13 am
2739
following several discussions during the last weeks/months I put together an example that shows one possible approach for solving the #4330950 (JTable removes...
Kleopatra
fastegal@...
Jan 11, 2002 10:39 am
2740
... I think I tried to accomplish something similar recently, but I was only concerned about JTextField cells. I subclassed DefaultCellEditor and overrode...