This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello! I am really confused here. For some reason, my output constantly justifies my first JLabel to the center. I'm not quite sure how to fix this; my professor told me to maybe try to left justify, but I tried that and it didn't do anything... I think it has something to do with my weightx and y. Sorry, I am genuinely new to Java and this site in general, and my code probably doesn't look very good at all, but any help with this would be much appreciated! Thank you! Here is the link to the relevant class: http://pastebin.com/vBSNmG0p
Scott, I know this isn't addressed to your question, but your LoanCalculatorPanel object extends ActionListener without providing the required implemenation of ActionPerformed. You might want to take care of that.
Couple of thoughts: First, can you trim your LoanCalculatorPanel object down the least code necessary to show the problem? Second, can you provide a JFrame parent (or something like that) in your posted code, so others could actually run it? Might be able to do more for you under those circumstances.
Don't feel bad if the GridBag seems tough. It is tough.