Image labels?

How would I get an image into a UI Designer form? My first guess is that I'd use the JLabel, which can refer to an ImageIcon. However, there doesn't seem to be a way to point UI Designer's JLabel's at an image. Am I missing something, or is it not there (yet)?

thanks,
dylan

3 comments
Comment actions Permalink

UIDesigner plugin look like that it will have OpenAPI for adding custom pallete of yourown components.

How as i can see pallete holds only components with primitive property setters. See your form file for example.

0
Comment actions Permalink


Dylan McNamee wrote:

How would I get an image into a UI Designer form? My first guess is that I'd use the JLabel, which can refer to an ImageIcon.
However, there doesn't seem to be a way to point UI Designer's JLabel's at an image. Am I missing something, or is it not there

(yet)?

I would suggest to use JLabels and use setIcon() to actually put in your images.
There's no way to do that in the designer right now, just bind a field for the label(s)
and call the method in your code.

Hope that helps,

Sascha


0
Comment actions Permalink

>just bind a field for the label(s) and call the method in your code.

Exectly

Vladimir Kondratyev
___________________
JetBrains

0

Please sign in to leave a comment.