Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.32 seconds.

  1. Replies
    3
    Views
    1,638

    Re: Imported Class of Components are Hidden

    No problem. This is one reason people argue for "composition over inheritance". If FirstPanel doesn't actually modify the functionality of JPanel, there's no reason for it to extend JPanel. Instead,...
  2. Replies
    3
    Views
    1,638

    Re: Imported Class of Components are Hidden

    FirstPanel IS A JPanel (it extends JPanel). It also HAS A JPanel (named panel). You're adding the JButton to the HAS A JPanel, but you're adding the IS A JPanel to the JFrame.
Results 1 to 2 of 2