my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes when is the UI object created Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "when is the UI object created" Watch "when is the UI object created" New topic

when is the UI object created

budsy remo
Ranch Hand

Joined: Sep 20, 2008
Posts: 103
hi, budsy again .
I wanna ask that when exactly is a the ui object created whenever we call something like JButton() ?

I checked out the online sun links and found out that they are created when the constructor is called . When i checked out the source code for JButton i saw that it is calling init(text,icon) and furthermore it's not even calling updateUI() ? Can somebody please explain the flow through a good example ?? Thanks a lot
I agree. Here's the link:
subject: when is the UI object created
It's not a secret anymore!