BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

adding components to the designer palette

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Heiner Litz
Guest





PostPosted: Fri Dec 12, 2003 1:01 pm    Post subject: adding components to the designer palette Reply with quote



HI

The designer Palette on the top of the designer, where you can select the
components that you want to use: JButton, JPanel, etc..

To this designer Palette I want to add some new Swing components. I know
that you can right-click on the palette then properties and then add new
component, but first I do not know how to add an icon, and second:

I want to add several about 20 components and I want to redistribute them,
so I would like to hava a small installation program that adds all the
elemnts to the jbuilder designer,

does anybody know how to do it?

thx and regards Heiner Litz


Back to top
Gillmer J. Derge (TeamB)
Guest





PostPosted: Fri Dec 12, 2003 2:39 pm    Post subject: Re: adding components to the designer palette Reply with quote



"Heiner Litz" <heinerlitz (AT) gmx (DOT) de> wrote

Quote:
component, but first I do not know how to add an icon, and second:

I think the icon comes from the class's BeanInfo class. Take a look at
the java.beans package. Also, JBuilder has some tools on the Beans tab
of the editor that make it easier to generate BeanInfo classes.

--
Gillmer J. Derge (TeamB)


Back to top
Daljit Sehmbi
Guest





PostPosted: Fri Dec 12, 2003 4:30 pm    Post subject: Re: adding components to the designer palette Reply with quote



Also have a look at the palette.ini file in your home directory.
Specifying a component image
Each component on the component palette has an image to represent it. If you
don't specify an image for the component, the default JBuilder component
icon appears. If you want to specify a unique image for your component, you
can use the Palette Properties dialog box. The image that represents a
component on the component palette must

a.. Be 16 or 32 pixels square.
b.. Have a file type of .GIF.
c.. Reside in the same directory (package) as the component.
To specify an image for your component on the component palette with the
Palette Properties dialog box,


1.. Choose Tools|Configure Palette or right-click the component palette
and choose Properties.

2.. Select the Pages tab.

3.. Select the page your component is on and select the component.

4.. Click the Properties button to display the Item Properties dialog box.

5.. Choose Select Image and specify the .GIF file you want for your
component.

6.. Click OK to close the Item Properties dialog box.

7.. Click OK when you are finished.

"Gillmer J. Derge (TeamB)" <spam (AT) gillmerderge (DOT) com> wrote

Quote:
"Heiner Litz" <heinerlitz (AT) gmx (DOT) de> wrote in message
news:3fd9bb35$1 (AT) newsgroups (DOT) borland.com...
component, but first I do not know how to add an icon, and second:

I think the icon comes from the class's BeanInfo class. Take a look at
the java.beans package. Also, JBuilder has some tools on the Beans tab
of the editor that make it easier to generate BeanInfo classes.

--
Gillmer J. Derge (TeamB)




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.