|
Hi Bertram, If you created Example.java in Netbeans,
the chances are that the form extends javax.swing.JPanel or JFrame etc. Additionally, the constructor will include
a call to initComponents, which essentially creates the form. If you want to incorporate Example.java
into another JPanel or JFrame, you just need to construct it and add it to that
component. On your top level container (example:
JFrame) you will need to call pack and show to set it visible. If you need more info in Swing
programming, you must check out: http://java.sun.com/docs/books/tutorial/uiswing/index.html PS! In Netbeans you can also create custom
components and add them to the Palette, so that they can be used during form
design. Regards, Enrico From:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum -~----------~----~----~----~------~----~------~--~--- |
- [CTJUG Forum] Question - Java Swing Forms Bertram Julius
- [CTJUG Forum] Re: Question - Java Swing Forms Enrico Goosen
