Thanks again for your help!
Type: Posts; User: lanmonster
Thanks again for your help!
Awesome. With your help, I got every button to work. Is it possible to have greyed out text in the JTextField?
Amt is defined in the SavingsGUI method of class SavingsGUI.
action listeners set. where do I put the commands for what they need to do?
See above post. Everything is laid out how I like it but the buttons don't do anything yet. I am eternally grateful to you for your kind service. Thank you for helping!
JFrame dep = new JFrame("Deposit Amount");
JPanel btn = new JPanel();
btn.setVisible(true);
btn.setLayout(new GridLayout(4,3,10,10));
JTextField depAmt = new JTextField("$***0.00",...
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: adding a window to a container
at java.awt.Container.checkNotAWindow(Container.java:439)
at...
I have the borderlayout set up but I am back to only one button showing. Nothing else. It is the last button added to dep that is showing.
JFrame dep = new JFrame("Deposit Amount");
JTextField...
nvm. I googled different layoutmanagers and found gridlayout.
--- Update ---
I want to put a JTextField above the buttons in dep and wit that displays the amount. When a button is pressed, it ...
dep.setLayout....
*facepalm*
now the buttons are all in a line. I would like to see them in a grid format 3(columns)x4(rows). How do I make this happen? Is it a different layout?
The last one. I used FlowLayout()
Rewrite. Now, the frame that appears when the deposit button is clicked just shows one button when it should show 12.
I thought GUI gooey = new GUI(); was the constructor.
when I try to call that method, an error is returned. something about it cannot be called in a static situation because it is not static.
I...
Sorry. When I run it, nothing shows up but the println to the terminal. The gui part does not appear.
Hello, I am not a newbie in the sense that I just started but it has been a while since I have done any programming. I am making a "Savings account" program and I am having trouble with the GUI. What...