How to use self derived components?

For example: I derived from the JTextField a new class that will only receive valid numbers, so as users will not input a string in it. I know i can let idea to generate UI source then modify the source to get the effect. But i think it will be better that i can change these kinds of things in UI designer, for i really don't want to see the ugly ui codes.

3 comments

tc master wrote:

For example: I derived from the JTextField a new class that will only receive valid numbers, so as users will not input a string in it. I know i can let idea to generate UI source then modify the source to get the effect. But i think it will be better that i can change these kinds of things in UI designer, for i really don't want to see the ugly ui codes.


Currently it's not possible but we are working on ability to customize
palette.

Best regards,
Vladimir Kondratyev
_____________________
JetBrains

0

For temparary solution, you maybe want to use something like that:
http://www.intellij.org/twiki/bin/view/Main/IntelliJUIDesignerGuide#Using_of_expected_components_in_

"UIDesignerGuide -> Using of expected components in standard palete"

Thanks!

"tc master" <no_reply@jetbrains.com> wrote in message
news:3838656.1070249094959.JavaMail.javamailuser@localhost...

For example: I derived from the JTextField a new class that will only

receive valid numbers, so as users will not input a string in it. I know i
can let idea to generate UI source then modify the source to get the effect.
But i think it will be better that i can change these kinds of things in UI
designer, for i really don't want to see the ugly ui codes.


0

On Mon, 01 Dec 2003 17:48:56 +0300, Vladimir Kondratyev (JetBrains) wrote:

Currently it's not possible but we are working on ability to customize
palette.


How about an option to place on the form a non-palletted class, that's
found in your project classpath, click the placeholder in the pallette,
click/drag a size on the form designer, then get prompted to enter a class
name, filtered to anything in the project-classpath that extends
JComponent.

This would be handy for when say you open a project that uses the GUI
designer, and has custom components, that you don't currently have on your
pallette.

This could then also lead to an intention action, to add the unpalletted
control, to the pallete ( project palette, module palette, or application
wide palette ).

Mark

0

Please sign in to leave a comment.