Skip to content

Commit dbac2ec

Browse files
committed
removes blue outline when JTable gets focus
1 parent d85d930 commit dbac2ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTableUI.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public DOMNode updateDOMNode() {
132132
if (domNode == null) {
133133
domNode = newDOMObject("div", id);
134134
enableJSKeys(true);
135+
DOMNode.setStyles(domNode, "outline", "none");
135136
// bindJSKeyEvents(domNode, true);
136137
}
137138
if (rebuild) {
@@ -2051,6 +2052,7 @@ public Dimension getMaximumSize(JComponent jc) {
20512052
@Override
20522053
public void paint(Graphics g, JComponent c) {
20532054
super.paint(g, c);
2055+
20542056
// BH 2019.07.04
20552057
// This method is entered from JViewport.blitDoubleBuffered (from scrolling)
20562058
// or from JComponent.paintComponent (initially, or from resize, for instance)
@@ -2075,6 +2077,10 @@ public void paint(Graphics g, JComponent c) {
20752077
int rMin = table.rowAtPoint(upperLeft);
20762078
int rMax = table.rowAtPoint(lowerRight);
20772079

2080+
System.out.println(" new clip " + clip
2081+
+ "\n" + upperLeft + " " + lowerRight + " " + rMin + " " + rMax);
2082+
2083+
20782084
// This should never happen (as long as our bounds intersect the clip,
20792085
// which is why we bail above if that is the case).
20802086
if (rMin == -1) {

0 commit comments

Comments
 (0)