4 ms·
> and better documentation. This. A whole lot of this. Case in point: while Java Swing where popular, noobs, including me where looking to Graphics2D and Imag
by reitanqild 10y ago
> and better documentation.
This. A whole lot of this.
Case in point: while Java Swing where popular, noobs, including me where looking to Graphics2D and Image when we first wanted to insert a picture.
The correct solution was jLabel.
Since then I have learned a lot but man pages and docs without examples are still annoying. (BTW: used rsync manually for the first time in a while yesterday and the man page was good, src and dst syntax was described. : )
- mathw 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". 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.