Results 1 to 2 of 2
  1. #1
    D.Calladine is offline Member
    Join Date
    Nov 2010
    Rep Power

    Default JPanels from another class


    i'm just wondering how you can add a JPanel say from a Registartion class
    appear in the frame of another class say UserInterface

    any help is greatly appricated

  2. #2
    tashimoto is offline Member
    Join Date
    Sep 2010
    Oregon, usa
    Rep Power


    You could try creating a method in UserInterface class that accepts a JPanel as a parameter, and pass the JPanel to it from the Registration class.

    I don't know if this is the best way, though. :)

Similar Threads

  1. 2 JPanels, one partly see-through
    By imorio in forum AWT / Swing
    Replies: 3
    Last Post: 08-23-2010, 10:04 PM
  2. Problems regarding JPanels in JPanels
    By ColtonPhillips in forum AWT / Swing
    Replies: 2
    Last Post: 07-19-2010, 08:33 PM
  3. Posistioning Jpanels
    By owain1221 in forum Java Applets
    Replies: 7
    Last Post: 11-15-2009, 11:21 PM
  4. HELP with jPanels
    By maverik_vz in forum AWT / Swing
    Replies: 1
    Last Post: 03-12-2009, 11:46 AM
  5. Help with overlapping JPanels
    By xcallmejudasx in forum New To Java
    Replies: 2
    Last Post: 03-09-2009, 10:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts