Search:

Type: Posts; User: lanmonster

Search: Search took 0.07 seconds.

  1. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    Thanks again for your help!
  2. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    Awesome. With your help, I got every button to work. Is it possible to have greyed out text in the JTextField?
  3. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    Amt is defined in the SavingsGUI method of class SavingsGUI.
  4. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    action listeners set. where do I put the commands for what they need to do?
  5. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    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!
  6. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    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",...
  7. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: adding a window to a container
    at java.awt.Container.checkNotAWindow(Container.java:439)
    at...
  8. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    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...
  9. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    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 ...
  10. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    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?
  11. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    The last one. I used FlowLayout()
  12. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    Rewrite. Now, the frame that appears when the deposit button is clicked just shows one button when it should show 12.
  13. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    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...
  14. Replies
    27
    Views
    3,519

    Re: General assistance for newbie

    Sorry. When I run it, nothing shows up but the println to the terminal. The gui part does not appear.
  15. Replies
    27
    Views
    3,519

    General assistance for newbie

    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...
Results 1 to 15 of 15