Makefile.am (gtk_awt_peer_sources): Add gnu/java/awt/peer/GLightweightPeer.java.
2003-08-21 Scott Gilbertson <scottg@mantatest.com> Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (gtk_awt_peer_sources): Add gnu/java/awt/peer/GLightweightPeer.java. Remove gnu/java/awt/GLightweightPeer.java. * gnu/java/awt/GLightweightPeer.java: Remove file. * gnu/java/awt/peer/GLightweightPeer.java: New file. * java/awt/Component.java (getToolkit): Add comment about lightweight components. * java/awt/Toolkit.java (createComponent): Return gnu.java.awt.peer.GLightweightPeer. Co-Authored-By: Thomas Fitzsimmons <fitzsim@redhat.com> From-SVN: r70657
This commit is contained in:
parent
eb84999398
commit
c79c6c5b9e
9 changed files with 168 additions and 105 deletions
|
@ -677,6 +677,7 @@ public abstract class Component
|
|||
if (tk != null)
|
||||
return tk;
|
||||
}
|
||||
// Get toolkit for lightweight component.
|
||||
if (parent != null)
|
||||
return parent.getToolkit();
|
||||
return Toolkit.getDefaultToolkit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue