From 5892f05411c3d4dce2d8a59e0966dc2e1843a971 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sat, 17 Aug 2019 08:33:35 -0400 Subject: [PATCH] Fix L&F nimbus too slow. --- cToggleButton.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cToggleButton.java b/cToggleButton.java index a9a562a..06b84ac 100644 --- a/cToggleButton.java +++ b/cToggleButton.java @@ -37,7 +37,7 @@ //if (getWidth() > image.getWidth(null) + 8) { g.drawImage(image, this.getWidth()/2 - 12, this.getHeight()/2 - 12, this); - g.drawRect(0, 0, this.getWidth()-1, this.getHeight()-1); + g.drawRect(2, 2, this.getWidth()-5, this.getHeight()-5); } } } -- Gitblit v1.6.2