Win a copy of Learning Regular Expressions this week in the General Computing forum!

daniel xiao

Greenhorn
+ Follow
since Jul 04, 2003
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 daniel xiao

I need to display one JLabel text to display in two rows/lines.
I should not create two JLabels for two lines.
I use this method can relization,but it's not best,Who have a good idear??:
label.setText("<html>test line1<br>test line2</html>");
15 years ago
How to make JLabel text display many rows
Exclusion of this method:
JLabel.setText("<html>hhhhh<br>jjjjjj</html>")
15 years ago
How to make JLabel text display many rows
Exclusion of this method:
JLabel.setText("<html>hhhhh<br>jjjjjj</html>")
15 years ago
You can Implements MouseListener,
addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {}
public void mousePressed(MouseEvent e) {}
public void mouseReleased(MouseEvent e) {}
public void mouseEntered(MouseEvent e) { }
public void mouseExited(MouseEvent e){ }
});
15 years ago
It's like Windows ,You can drag start menuItem add to desktop
15 years ago
I want to drag a MenuItem ,and Release on a Panel,
In this Panel add a Button?
Who can Help me???
15 years ago
How to add JMenuItem to my JMenu??
After all menu have created,
I want to add a JMenuItem to one JMenu.
I can't get the JMenu index,but I Know my JMenu name.
15 years ago
How to get a String width(pixel or Metric)??
15 years ago
setIcon(new ImageIcon("$/zz.gif"));
15 years ago
I set JMenuItem width = "150",but my MenuItem's value is too long :JMenuItem("test menu item this "), it's can show "test menu ite" ,
How to make it display like "test menu i.."??
15 years ago
How to Set the JTable Rows Color??
row1.color is green,row2 color is red ......
15 years ago