Thorsten Schenkel

Greenhorn
+ Follow
since Jul 02, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Thorsten Schenkel

Hello,
the usage of
frame.getRootPane().setDefaultButton(theButtonYouWant);
to set the default button has one problem: if e.g. a tree or a table is part of the dialog or the frame and the tree or the table has the focus "return" does not activate the default button, because the tree or the table handle "return" themselves. In this case the user must use ctrl+return to activate the default button.
19 years ago
Hallo,
I have written a small sample application with an editable tree.
Sometimes some nodes of the tree are editable, sometimes they are NOT.
This inconsistent behaviour I have only notice with jdk 1.4.1_01, not with jdk 1.3.1_07.
Here is an example:

To reproduce the problem execute the following steps:
- After starting the test application open the sub-tree "sports"
- Click with the mouse pointer three times (very fast) on "food". Now "food" is editable.
- Click three times on "basketball". Now "basketball" is editable.
- Click with the mouse pointer three times on "food" (once again). Now "food" is NOT editable.
Can somebody help me to solve this problem?
Thanks
Thorsten Schenkel
19 years ago
The conventional way to do this is:
JLabel lab = new JLabel( "Full Name: " );
lab.setDisplayedMnemonic( 'N' );
JTextField field = new JTextField();
lab.setLabelFor( field );
Now you have to do nothing else. Press Alt+N and the text field gets automatically the focus.
It only works for Alt+N and not for Ctrl+N
19 years ago
Use Ctrl+Tab to leave the JTable. Tab inside the table is used to jump from one cell to another cell of the table.
19 years ago
Hallo,
I has downloaded MIDP4Palm Version 1.0.
The Zip-File has some examples. E.g. the PRC-File Games.prc or Demos.prc.
Now I am looking for the source files of these examples.
Where can I find these sources?
Greetings
Thorsten Schenkel
20 years ago
You can overwrite the method approveSelection of JFileChooser.
Example:

regards
Thorsten
20 years ago
I want to implement a stop watch.
Because of that is must subtract the current stop time from the start time. But this does not work in my example. The difference between start and stop time is always one hour too big.
What is wrong?
Here is the example:

kind regards
Thorsten Schenkel
20 years ago