equal
deleted
inserted
replaced
50 import javax.swing.JComponent; |
50 import javax.swing.JComponent; |
51 import javax.swing.border.Border; |
51 import javax.swing.border.Border; |
52 import com.sun.java.swing.plaf.motif.*; |
52 import com.sun.java.swing.plaf.motif.*; |
53 import java.awt.im.InputMethodRequests; |
53 import java.awt.im.InputMethodRequests; |
54 |
54 |
55 import java.util.logging.*; |
55 import sun.util.logging.PlatformLogger; |
|
56 |
56 import sun.awt.CausedFocusEvent; |
57 import sun.awt.CausedFocusEvent; |
57 import sun.awt.ComponentAccessor; |
58 import sun.awt.ComponentAccessor; |
58 |
59 |
59 public class XTextFieldPeer extends XComponentPeer implements TextFieldPeer { |
60 public class XTextFieldPeer extends XComponentPeer implements TextFieldPeer { |
60 private static final Logger log = Logger.getLogger("sun.awt.X11.XTextField"); |
61 private static final PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11.XTextField"); |
61 |
62 |
62 String text; |
63 String text; |
63 XAWTTextField xtext; |
64 XAWTTextField xtext; |
64 |
65 |
65 boolean firstChangeSkipped; |
66 boolean firstChangeSkipped; |
254 void repaintText() { |
255 void repaintText() { |
255 xtext.repaintNow(); |
256 xtext.repaintNow(); |
256 } |
257 } |
257 |
258 |
258 public void setBackground(Color c) { |
259 public void setBackground(Color c) { |
259 if (log.isLoggable(Level.FINE)) log.fine("target="+ target + ", old=" + background + ", new=" + c); |
260 if (log.isLoggable(PlatformLogger.FINE)) log.fine("target="+ target + ", old=" + background + ", new=" + c); |
260 background = c; |
261 background = c; |
261 if (xtext != null) { |
262 if (xtext != null) { |
262 xtext.setBackground(c); |
263 xtext.setBackground(c); |
263 xtext.setSelectedTextColor(c); |
264 xtext.setSelectedTextColor(c); |
264 } |
265 } |