make sure that Inventory extends JPanel
this makes Inventory
to behave as a subclass of a JPanel, and thus you can use it in the same way.
More Related Contents:
- Using Interface in a Class for Function
- error: illegal start of expression 1 error
- Best GUI designer for eclipse? [closed]
- Eclipse error: “The import XXX cannot be resolved”
- WindowBuilder Design Tab incomplete in Eclipse
- Browse for image file and display it using Java Swing
- Binding comboboxes in swing
- Any reason to clean up unused imports in Java, other than reducing clutter?
- “Could not find the main class” error when running jar exported by Eclipse
- Importing JSON into an Eclipse project
- How to import a Java project to Eclipse?
- Why “no projects found to import”?
- import from another java project in eclipse
- java swing component cannot be resolved
- Visual swing in Eclipse
- Is there a “word wrap” property for JLabel?
- java swing JTextField set PlaceHolder [duplicate]
- Resize a picture to fit a JLabel
- How to make canvas with Swing?
- Slide JPanel Content in a JForm on Java
- Why is my OBJ parser rendering meshes like this?
- Transparent JButton
- How can I customize the title bar on JFrame?
- How can I measure/calculate the size a Document needs to render itself?
- Mirroring animated gif on load in Java – ImageIcon
- how to add command line parameters when running java code in Eclipse?
- how to add jscrollpane to jframe?
- Using java.io library in eclipse so FileInputStream can read a dat file
- Creating a submenu in context menu from overridden getActions in Java JHotDraw
- What different breakpoint icons mean in Eclipse?