Results 1 to 7 of 7
Thread: JButton Problem
- 02-18-2009, 05:22 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 4
- Rep Power
- 0
-
You can try to use HTML mark up in the text used as the button's label.
- 02-18-2009, 08:29 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 4
- Rep Power
- 0
Dear Fubarable,
10 for the reply
i'm using netbeans 6.5 , i've tryed to edite the text of the JButoon , and i've entred something like <b>my text</b> but it doesen't work .
the display is <b>my text</b>.
also i've tryed to ented <html><body><b>my text</b> , but also it doesn't work .
- 02-18-2009, 08:55 PM #4
Member
- Join Date
- Jul 2008
- Posts
- 67
- Rep Power
- 0
This code works for me
Java Code:String str = "<html><font color=green>Hello<sup>2</sup></font></html>"; JButton button = new JButton(str);
- 02-18-2009, 09:31 PM #5
Member
- Join Date
- Feb 2009
- Posts
- 4
- Rep Power
- 0
ok , now it's ok .....
thank you very much ,
The JButoon is ok, but the JTextfield won't to be formatted ....
The problem was with the body tag <body>.....
i have another question , can i use css in my application form's so it will be faster to change the design of my application after a time ????Last edited by wassim; 02-18-2009 at 09:39 PM.
- 02-18-2009, 09:48 PM #6
Member
- Join Date
- Jul 2008
- Posts
- 67
- Rep Power
- 0
- 02-18-2009, 10:29 PM #7
Member
- Join Date
- Feb 2009
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Jbutton not working??
By rmabrey in forum AWT / SwingReplies: 7Last Post: 09-24-2008, 05:30 PM -
Help with JButton
By geoffreybarwise in forum New To JavaReplies: 4Last Post: 05-21-2008, 10:48 AM -
Need help with JButton event
By adlb1300 in forum New To JavaReplies: 2Last Post: 11-19-2007, 01:15 AM -
Problem with JButton
By Marcus in forum AWT / SwingReplies: 1Last Post: 07-05-2007, 05:56 AM -
Mouse over JButton
By sandor in forum AWT / SwingReplies: 1Last Post: 05-17-2007, 09:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks