Search:

Type: Posts; User: klskl

Search: Search took 0.14 seconds.

  1. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    Thx guys for all help! I have alot left to do, but I think I can manage from here useing what you showed me!
  2. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    Well, if I have the listeners like this:


    public JMenu createMenu3(String Save) {
    JMenu m = new HorizontalMenu(Save);

    m.add(" Save...
  3. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    Well, i will try and see if it works, then maybe work around it later, since I wanna move on, thanks!

    --- Update ---

    But . . .


    public void actionPerformed(ActionEvent e) {...
  4. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    I see alot of addActionListener(this) but, I have to do something in the popupmenu? What is the easiets way to get
    System.exit(0); under 'createmenu3' " Exit"


    public JMenu...
  5. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    Thats just it, I can't, whatever I do I don't get diffrent options, I can make a new MenuBar for each create, view and save, but then I can place them under eachother.
    When I do several createMenu,...
  6. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    It's like this:




    public JMenuBar createMenuBar() {
    JMenuBar menuBar = new JMenuBar();
    menuBar.setLayout(new BoxLayout(menuBar, BoxLayout.PAGE_AXIS));
    ...
  7. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    Yeah I did alot of that last night, but I never found a good solution, except maybe 'JmenuBar' , but I ran into a problem there, it was like this:
    menu1 - item1 in menu1 - item2 in menu1 -item3 in...
  8. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    I have been looking at the JOptionPane solution, and it looks really good, so thanks!
    But, I was thinking, what is the best way to display my 'menu'? , is it simply alot of buttons, or is there a...
  9. Replies
    20
    Views
    1,675

    Re: Basic GUI (eclipse swing)

    I will try it out

    As for the oracle guides, i've read them, but I don't seem to come to terms with them, but I will continue trying ofcourse, It's just that part with user input that bothers me
  10. Replies
    20
    Views
    1,675

    Basic GUI (eclipse swing)

    Hello there! So I've got this program over registerd animals in a zoo, the idea is that when an animal is 'created' and added in a room, it gets saved into a registry, I know my code isn't the...
Results 1 to 10 of 10