User:Javawizard
From Wikipedia, the free encyclopedia
[edit] Javawizard
there's not much to say about myself, except that my favorite programming language is Java (does anyone know how to link to the Java programming language page in wikipedia? please post on my talk page).
[edit] Note 0001
i modified the swing code sample specifically because you should set the layout manager for the content pane no matter what the application. the default layout manager is BorderLayout but this could change in the future so it's best to always, always, always, always set the layout manager. if there isn't a layout manager then the label gets it's size set to 0 so it doesn't show.
also, i modified the line where we add the label, because in Swing you call getContentPane().add() instead of add() or else you will get en exception.
i also added the line with super("hello") on it so that the user can see how you can put text on the title bar. this is what i did on my first hello world app.