Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How I can Add a component in VE toolbar
How I can Add a component in VE toolbar [message #137891] Tue, 05 June 2007 14:28 Go to next message
Eclipse UserFriend
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
Re: How I can Add a component in VE toolbar [message #139476 is a reply to message #137891] Tue, 31 July 2007 17:44 Go to previous message
Siraj Uddin is currently offline Siraj UddinFriend
Messages: 8
Registered: July 2009
Junior Member
hello my friend even I am new to this community but I think I can help you
with this....
just go through this tutorial
http://www.eclipse.org/articles/Article-VE-Custom-Widget/cus tomwidget.html

that should take you step by step throughout the procedure of adding a
custom widget onto the visual editor's toolbar
regards
Siraj
"Sheejo" <sheejo@gmail.com> wrote in message
news:1639460392.1411181053712930.JavaMail.root@cp9.dzone.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
Re: How I can Add a component in VE toolbar [message #616349 is a reply to message #137891] Tue, 31 July 2007 17:44 Go to previous message
Siraj Uddin is currently offline Siraj UddinFriend
Messages: 8
Registered: July 2009
Junior Member
hello my friend even I am new to this community but I think I can help you
with this....
just go through this tutorial
http://www.eclipse.org/articles/Article-VE-Custom-Widget/cus tomwidget.html

that should take you step by step throughout the procedure of adding a
custom widget onto the visual editor's toolbar
regards
Siraj
"Sheejo" <sheejo@gmail.com> wrote in message
news:1639460392.1411181053712930.JavaMail.root@cp9.dzone.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
Previous Topic:need Help with Pallete entry type..
Next Topic:how do i set a property for array eg: String[]
Goto Forum:
  


Current Time: Thu Nov 27 08:55:37 GMT 2014

Powered by FUDForum. Page generated in 0.26300 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software