3 ms·
The problem there being that few people are going to see JLabel in a class list and think "oh, that must be something to do with my image-related needs!" Especi
by mathw 10y ago
The problem there being that few people are going to see JLabel in a class list and think "oh, that must be something to do with my image-related needs!" Especially if they've used other GUI tookits, which as far as my experience goes use "label" exclusively to mean "some static text".
Well, except WPF, where you can re-template anything you like, but even there, the default Label is just a text container.
- hashhar 10y agoAfter moving from Swing to WPF I started deriding myself for not having done so earlier. WPF is a joy compared to most of the Java GUI toolkits.
- TeMPOraL 10y agoOr web developers, who know that the obvious way to insert an image is to take a block element originally used for text and style it with a background image...
- paulryanrogers 10y agoThe bane of high-contrast users everywhere
- slrz 10y agoThe problem there being that few people are going to see JLabel in a class list and think "oh, that must be something to do with my image-related needs!" Especially if they've used other GUI tookits, which as far as my experience goes use "label" exclusively to mean "some static text". In Tcl/Tk you would also use a label to display your image with. Tk was one of the most popular toolkits at the time Swing was designed.