Using Custom components in IntelliJ IDEA

Hi all,

I wanna use some costom swing components.As am using GUI designer,i cant create objects for custom swing class and use it.So i followed IDEA's help which says like this


-


1)Install your UI beans library(ies) to the IDEA lib folder
2)Create a special palette descriptor file
3)Restart IDEA, set the Additional component palette option to the a new value that will appear in the list, then start IDEA again.
-



I have followed exactly what the HELP said.But i did'nt get my custom component in toolbar.My component is JDateField.and i have grouped it in MyBeans.But no group named MyBeans is appearing in toolbar.I have set the Additional component palette option to the a new value,that is palette.then restarted IDEA.But no component is displaying.

I am adding the palette.xml file with this.Plz have a look on it.


here's palette.xml,

-



]]>
-





Thx in adv,
Tom

4 comments
Comment actions Permalink

Anybody from IntelliJ just have a look

0
Comment actions Permalink

Hi,

Do you use IDEA 4.5? If so, please note that the Help is outdated - palettes
are configured via UI (IDE Settings | GUI Designer | Palette), and there's
no need to edit palette descriptor file anymore.

--
Anton Katilin
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure"


"Tomy" <tomcruise9090@yahoo.com> wrote in message
news:28579314.1089545447580.JavaMail.itn@is.intellij.net...

Hi all,

>

I wanna use some costom swing components.As am using GUI designer,i cant

create objects for custom swing class and use it.So i followed IDEA's help
which says like this
>
>

------------------
1)Install your UI beans library(ies) to the IDEA lib folder
2)Create a special palette descriptor file
3)Restart IDEA, set the Additional component palette option to the a new

value that will appear in the list, then start IDEA again.

-----------------------

>

I have followed exactly what the HELP said.But i did'nt get my custom

component in toolbar.My component is JDateField.and i have grouped it in
MyBeans.But no group named MyBeans is appearing in toolbar.I have set the
Additional component palette option to the a new value,that is palette.then
restarted IDEA.But no component is displaying.
>

I am adding the palette.xml file with this.Plz have a look on it.

>
>

here's palette.xml,

>

------------------------------

>

<?xml version="1.0" encoding="UTF-8"?>

>

<palette>
<group name = "MyBeans">

>

<item class = "/com/theotherbell/ui/com.theotherbell.ui.DateField"
icon="/pic/datefieldicon.gif"
small-icon="/pic/datefieldiconsmall.gif"
>
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0"

fill="1"/>
>
>

</item>

>
>

</group>

>

</palette>
-------------------

>
>
>

Thx in adv,
Tom



0
Comment actions Permalink

>Do you use IDEA 4.5? If so, please note that the Help is >outdated - palettes
>are configured via UI (IDE Settings | GUI Designer | >Palette), and there's
>no need to edit palette descriptor file anymore.

I am using IDEA 4.0.So what i can do with it?.

Just care,

Thanks,
Tom

0
Comment actions Permalink

Tomy wrote:

>>Do you use IDEA 4.5? If so, please note that the Help is >outdated - palettes
>>are configured via UI (IDE Settings | GUI Designer | >Palette), and there's
>>no need to edit palette descriptor file anymore.


I am using IDEA 4.0.So what i can do with it?.

Just care,

Thanks,
Tom


I suspect the easiest way would way a few days before 4.5 release or download RC from www.intellij.net/eap :)
Upgrade from 4.0 to 4.5 will be free of charge anyway.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.