Adding custom component to palette

Hi everyone,

What the best way to avoid round-trip when creating a custom component to the palette?

I was hoping to add a class, extending a Swing component, to the palette and working on it, making the project to see reflected changes on the UI designer.
However, when adding a custom component I keep getting a "... class not found ..." error on the designer.

Does someone has any tips on the best workflow to achieve this?

Many thanks!

0
5 comments

Hi.

Please try Reload Custom Components button (main tool bar, with opened UI form).

Alexander.

0
Avatar
Permanently deleted user

Hi Alexander,

Thanks for the tip, I was unaware of that feature.

Still, I keep getting "class not found" errors for even the simplest of subclassed components.

If I create a simple (say)

class MyTable extends JTable {

public MyTable() {

//super()

}     

}

For some reason, MyTable is added correctly to the palette, but I can't add it to a form (class MyTable not found), even after editing the bound form java file and form xml file to add fully qualified names...

Any suggestions?

Many thanks!

EDIT: Should have mentioned, I'm using the latest Maia EAP (90.137) and Java SDK 1.6u11

0

Hello Rui,

There's a button "Reload custom components" in the UI Designer toolbar that
will help you if the changes in your component aren't picked up automatically.

Hi everyone,

What the best way to avoid round-trip when creating a custom component
to the palette?

I was hoping to add a class, extending a Swing component, to the
palette and working on it, making the project to see reflected changes
on the UI designer.

However, when adding a custom component I keep getting a "... class
not found ..." error on the designer.

Does someone has any tips on the best workflow to achieve this?

Many thanks!

---
Original message URL:
http://www.jetbrains.net/devnet/message/5248587#5248587

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


1

Unfortunately, I cannot reproduce the problem.

I have created dummy MyTable component. Made the project.
Created UI form. Added MyTable to the palette. Put the component from the palette to a form. The Swing stub table was painted inside the form and there was no error.
Made the module. It was done successfully.

Have I missed any specific condition to reproduce?

Alexander.

0
Avatar
Permanently deleted user

In the cold weather, the UGG boots are considered as the best shoes.More and more people like wearing the UGG boots such as the UGG Classic Metallic 5812]]>.With its development ,the UGG boots have lauched different kinds of boots into the fashion market,including the UGG Classic Short Boots]]> and the UGG Women's Highkoo]]>.However,in the fashion world,if you want to be more attractive and elegant,the beautiful shoes are not enough.You have to choose the best stylish handbag to match your shoes.Therefor,the designer replica handbags are very necessary.If you want to buy the best designer cheap handbags,i would like to introduce two famous brand handbags to you.I think there must be one handbag is your favorite.One is the famous brand Versace Handbags ,the other is the Ferragamo Handbags.Both of them are the famous brand in the world.Their quality are very good.

---
Original message URL: http://www.jetbrains.net/devnet/message/5254911#5254911

0

Please sign in to leave a comment.