How I can Add a component in VE toolbar [message #615315] |
Tue, 05 June 2007 10:28 |
Eclipse User |
|
|
|
Originally posted by: sheejo.gmail.com
Hi
I am very new to Visual Editor. Please help me to solve this problem. How I can Add my own component in VE toolbar.
Sample code:
public class MyLabel extends JLabel
{
public static final Color TITLE_COLOR = Color.black ;
public MyLabel()
{
setForeground ( TITLE_COLOR ) ;
setBackground ( new Color ( 204, 204, 204 ) ) ;
setHorizontalTextPosition (javax.swing.SwingConstants.RIGHT ) ;
}
}
Please help me to add this component in VE toolbar like other component likes JLabel, JTextField etc.
Thanks in Advanvce
Regards
Sheejo
|
|
|
Powered by
FUDForum. Page generated in 0.03500 seconds