On Wed, 19 Feb 2020 05:38:16 -0400, Mike Wey wrote:
On 19-02-2020 05:33, mark wrote:
[snip]
Actually the code is using a other constructor then the one accepting a
StockID, since theh icon size is missing the enum is interpreted as a
string and passed to the constructor that uses a filename.This should work:
optionsButton = new Button("_Options"); optionsButton.setImage(new Image(StockID.PREFERENCES, IconSize.BUTTON));
IconSize.BUTTON doesn't seem to exist for me. However, this worked:
optionsButton.setImage(new Image(StockID.PREFERENCES,
IconSize.fromName("BUTTON")));