Re: Referring to AWT toolkit before components created



"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)

.



Relevant Pages

  • Re: New mindprod.com website
    ... Hmm. ... Where are you calling from? ... And loving it, ... (Replace the "SixFour" with numbers to email me) ...
    (comp.lang.java.programmer)
  • Changing the font of tool tip text
    ... tip text for a JComponent? ... And loving it, ... (Replace the "SixFour" with numbers to email) ...
    (comp.lang.java.gui)
  • Re: Process vs Thread: what are the consequences?
    ... "Arne Vajhøj" wrote in message ... Java implementations. ... And loving it, ... (Replace the "SixFour" with numbers to email me) ...
    (comp.lang.java.programmer)
  • Referring to AWT toolkit before components created
    ... Is it possible to get a reference to the current AWT toolkit before any GUI components/objects have been created? ... And loving it, ... (Replace the "SixFour" with numbers to email me) ...
    (comp.lang.java.gui)