Re: Referring to AWT toolkit before components created
- From: "Qu0ll" <Qu0llSixFour@xxxxxxxxx>
- Date: Tue, 17 Apr 2007 23:40:40 +1000
"Andrew Thompson" <u32984@uwe> wrote in message news:70d60f9911612@xxxxxx
Qu0ll wrote:Is it possible to get a reference to the current AWT toolkit before any GUI
components/objects have been created?
class GetToolkit {
public static void main(String[] args) {
System.out.println(
java.awt.Toolkit.getDefaultToolkit() );
}
}
Duh! The old getDefaultToolkit trick eh?
--
And loving it,
-Q
_________________________________________________
Qu0llSixFour@xxxxxxxxx
(Replace the "SixFour" with numbers to email me)
.
- References:
- Prev by Date: Referring to AWT toolkit before components created
- Next by Date: Embedding a Jframe in an Applet
- Previous by thread: Referring to AWT toolkit before components created
- Next by thread: Embedding a Jframe in an Applet
- Index(es):
Relevant Pages
|