Search:

Type: Posts; User: lanmonster

Page 1 of 2 1 2

Search: Search took 0.10 seconds; generated 56 minute(s) ago.

  1. Replies
    2
    Views
    1,395

    read double from a file

    I have created a "Savings Account" so to speak and I need to be able to read the balance from a file I have called balance.txt The file is formatted like this


    ******************************
    ...
  2. Replies
    27
    Views
    3,517

    Re: General assistance for newbie

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

    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?
  4. Replies
    27
    Views
    3,517

    Re: General assistance for newbie

    Amt is defined in the SavingsGUI method of class SavingsGUI.
  5. Replies
    27
    Views
    3,517

    Re: General assistance for newbie

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

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

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

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

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

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

    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?
  12. Replies
    27
    Views
    3,517

    Re: General assistance for newbie

    The last one. I used FlowLayout()
  13. Replies
    27
    Views
    3,517

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

    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...
  15. Replies
    27
    Views
    3,517

    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.
  16. Replies
    27
    Views
    3,517

    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...
  17. Replies
    3
    Views
    1,385

    [SOLVED] Re: Project Euler problem one

    I got it figured out! Now on to problem 2...
  18. Replies
    3
    Views
    1,385

    [SOLVED] Re: Project Euler problem one

    Thanks
  19. Replies
    3
    Views
    1,385

    [SOLVED] Project Euler problem one

    I am using Project Euler to test myself on the Java programming that I am teaching myself and here is problem one: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3,...
  20. Replies
    1
    Views
    1,191

    Funny Behaviour

    Here is a little program I wrote to help me memorize my student ID #. I will * out the actual number but here is my code.

    import java.util.Scanner;
    class baylorID {
    public static void...
  21. Replies
    2
    Views
    1,260

    Re: if statement syntax question

    *derp* got mixed up. They do for statements like that, which is probably the right way to do it. I have not learned the for statement yet. My bad :P
  22. Replies
    2
    Views
    1,260

    if statement syntax question

    I am in a computer science academic event and in the practice tests, they give a code fragment and ask what the output will be. I know that the if statement can be notated like:
    if (someBoolean){...
  23. Replies
    20
    Views
    1,280

    Re: User Input help

    Got it! Now I just have to get it GUI'd up and I'll be all done!
  24. Replies
    20
    Views
    1,280

    Re: User Input help

    one last question. I need to make it where when I can go back to the point where I make the decision to view stats or deposit. How do I do this?
  25. Replies
    20
    Views
    1,280

    Re: User Input help

    Sorry if I am getting on your nerves. I certainly am not trying to. Java program write to file please.
Results 1 to 25 of 39
Page 1 of 2 1 2