|
From: <de...@us...> - 2014-10-09 22:05:43
|
Revision: 8875
http://sourceforge.net/p/fudaa/svn/8875
Author: deniger
Date: 2014-10-09 22:05:40 +0000 (Thu, 09 Oct 2014)
Log Message:
-----------
grille ne bouge pas si
Modified Paths:
--------------
trunk/framework/ctulu-bu/src/main/java/com/memoire/dja/DjaGridInteractive.java
Modified: trunk/framework/ctulu-bu/src/main/java/com/memoire/dja/DjaGridInteractive.java
===================================================================
--- trunk/framework/ctulu-bu/src/main/java/com/memoire/dja/DjaGridInteractive.java 2014-10-09 22:05:26 UTC (rev 8874)
+++ trunk/framework/ctulu-bu/src/main/java/com/memoire/dja/DjaGridInteractive.java 2014-10-09 22:05:40 UTC (rev 8875)
@@ -38,8 +38,6 @@
public class DjaGridInteractive
extends DjaGrid {
-
-
public DjaGridInteractive() {
this(true, null);
}
@@ -59,8 +57,6 @@
setInteractive(_interactive);
}
-
-
private boolean anchorsVisible_;
public boolean isAnchorsVisible() {
@@ -374,6 +370,16 @@
}
}
+ private boolean paintRect = true;
+
+ public boolean isPaintRect() {
+ return paintRect;
+ }
+
+ public void setPaintRect(boolean paintRect) {
+ this.paintRect = paintRect;
+ }
+
public void paintComponent(Graphics _g) {
super.paintComponent(_g);
@@ -383,7 +389,9 @@
int h = getHeight() - i.top - i.bottom;
_g.setColor(UIManager.getColor("Button.focus"));
- _g.drawRect(i.left + 1, i.top + 1, w - 3, h - 3);
+ if (paintRect) {
+ _g.drawRect(i.left + 1, i.top + 1, w - 3, h - 3);
+ }
if (kl_ != null) {
int kp = kl_.getPreviousKey();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|