posted 20 years ago
I'm writing a GUI application that takes in two fractions and does a different mathmatical operations on them. I decided to give a shot at GridBagLayout, since I hadn't ever used it before. I pretty much followed an example in Deitel & Deitel for setting up the constraints, etc. Here is the relevant code:
The problem is when the application Frame comes up, all I get is one giant JLabel saying "Rational Math". No other components show up! I have been able to duplicate Sun's tutorial example of the layout, and it worked perfectly. I then went into the example and started changing things to match my application, and it worked as expected. I've sat here and compared line by line, and I can't see anything wrong.
Any ideas why this is happening?
Thanks in advance
Jason