Jeff Chang

Greenhorn
+ Follow
since Aug 23, 2001
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 Jeff Chang

Just call:
// Close the result set
rs.close();
// Close the statement
stmt.close();
// Close the connection
con.close();
19 years ago
Check the examples below:
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
19 years ago
Try:
yourJTextArea.select(1, 1);
It should work because it works well for my project.
Good luck! :-)
20 years ago
Simon,
I think you can add an ActionEvent by calling addxxxListener(...).
20 years ago
Simon
Maybe you can use two strings like:
String htmlText1 = "I love a ;
String htmlText2 = "person";
...
then make only the 2nd string link to the URL.
Good luck.

20 years ago
Why don't you pass ActionEvent when you call xxxButton.addActionListener(..)?
20 years ago
Judy,
Please post your code here so that somebody maybe help you solve the problem. :-)
20 years ago
Yes, I did but it did not work.
20 years ago
hi,
I use the HTML (i.e. "<HTML><center>Name</center></HTML>") to boldface and center the text of the header for all the columns in a JTable. But I can only boldface the text but could not center them. Does anybody know how to solve this problem? Thanks.
Jeff
20 years ago
hi,
To disable cut/copy/paste in a JtextField, you can create a JTextField and override the copy() and paste()
methods as below:
JTextField myTextField = new JTextField()
{
public void cut() {};
public void copy() {};
public void paste(){};
}
This is also disable cut().
Good luck.
Jeff
20 years ago
Thanks, Paul.
My problem is same as that posted on JDC discussion forum: the JFileChooser extends a JDialog not a JFrame, so the Java cup icon still exists.
Jeff

20 years ago