I have been trying to figure out why when I execute this code all I get is a little bar at the top of the screen without any of my Labels or Buttons please help with a debug
Hi, I figured out why it is not appearing. You have to change the main method.
BankingGUIFrame() is a method and it is not a constructor, so it will not be automatically created when you create an object of the class inventFrame. To call that you need an instance of the class inventFrame, you can't have Frame frame = new inventFrame(); and use that frame instance to call the BankingGUIFrame() cause that reference can't call that method. Hope you got the point. BTW, it's better you name the classes according to the Hungerian Notation (the 1st letter of all the words should be in capital, example: InventFrame), Have a nice day...
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Chase Becicka
Greenhorn
Joined: Feb 16, 2004
Posts: 23
posted
0
Okay I can see my JFrame now but I can't see my panels I created unless I resize my JFrame but I don't want my JFrame to be resizeable in the end. Should I just switch to a easier Layout Manager or is there an easy fix
what I am trying to get this to do is go gown vertically like this