ImageIcon

Methods
4
Fields
None

Getting one

ImageIcon.new()

Methods

MethodReturnsDescription
getImage()Image?The image, or nil for an empty icon.
getIconWidth()numberThe width: the image's, or -1 without one.
getIconHeight()numberThe height: the image's, or -1 without one.
new()ImageIcon() -> ImageIcon: An icon with no image (0 by 0).
new(Image)ImageIcon

Returned by

MethodReturnsDescription
ImageIconClass.newImageIcon() -> ImageIcon: An icon with no image (0 by 0).

Method details

new

new: (() -> ImageIcon) & ((Image) -> ImageIcon)

() -> ImageIcon: An icon with no image (0 by 0).

(Image) -> ImageIcon: An icon showing image.