Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    I Don't know. Try some of the textfield's methods and see what they do.
  2. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    If you want other methods to have access to it, it needs to be defined at the class level (outside of a method).
  3. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    They need action listeners added to them so something can be done when they are pressed.
  4. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    What is a JTextView?

    If its a class, read its API doc to see what methods it has that will do what you want.
  5. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    It is not allowed to add a window to a container.
    It is allowed to add just about any other component to a container.

    Use a JPanel NOT a JFrame.
  6. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Where is the JPanel with the gridlayout that is supposed to hold the buttons?
    That when filled is added to the center of the borderlayout
  7. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Use different layout managers and JPanels that hold some of the components with its own layout manager.
    With a borderlayout put a large component in North and a JPanel with a gridlayout in center...
  8. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Yes, there are many different layout managers.
    Did you look at the link in post#2?
  9. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Where is it set for the dep JFrame?
  10. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Which button is shown? The first one added or the last one?

    What layout manager is controlling the layout for the container that the buttons are being added to?
  11. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    That is a call to the class's constructor. See the tutorial on how to write class constructors:
    Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language > Classes...
  12. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Where is the constructor for the class?
    Where is the method: gui() called? Did you mean for the gui() method to be coded as a constructor?

    Why are there two JFrames? One is extended the other is...
  13. Replies
    27
    Views
    3,524

    Re: General assistance for newbie

    Please explain what is wrong.

    Take a look at the tutorial about how to use layout managers:
    http://docs.oracle.com/javase/tutorial/uiswing/layout/index.html
Results 1 to 13 of 13