MCPcopy Index your code
hub / github.com/processing/processing / createIconButton

Method createIconButton

app/src/processing/app/ui/Toolkit.java:605–608  ·  view source on GitHub ↗

Create a JButton with an icon, and set its disabled and pressed images to be the same image, so that 2x versions of the icon work properly.

(String title, String base)

Source from the content-addressed store, hash-verified

603 * to be the same image, so that 2x versions of the icon work properly.
604 */
605 static public JButton createIconButton(String title, String base) {
606 ImageIcon icon = Toolkit.getLibIconX(base);
607 return createIconButton(title, icon);
608 }
609
610
611 /** Same as above, but with no text title (follows JButton constructor) */

Callers 4

StatusPanelMethod · 0.95
UpdateStatusPanelMethod · 0.95
buildErrorPanelMethod · 0.95
FilterFieldMethod · 0.95

Calls 1

getLibIconXMethod · 0.95

Tested by 1

UpdateStatusPanelMethod · 0.76