Search:

Type: Posts; User: klskl

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    1,387

    Re: write & read/load to/from file

    I have explaind the best I can on that place
  2. Replies
    3
    Views
    1,387

    write & read/load to/from file

    Hello, I need to write some objects to a file, then when I 'read' them back to the program, they have to be exactly the same, they have to be the same kind of objects, with the same name and...
  3. Replies
    2
    Views
    1,142

    Re: Java RMI eclipse BANK, help!

    Yeah, this is what I'm talking about! I can do the printer example, since they show exactly how it's done, but I cant even begin to figure out how I would make a banksystem ..
  4. Replies
    2
    Views
    1,142

    Java RMI eclipse BANK, help!

    It's okey! Hold it whit them answers!! I figured it out, I added new 'account servers' ... ex: AccountServer klskl = new AccountServer, then set name with 'Naming'.

    But feel free to come with help...
  5. Replies
    20
    Views
    1,676

    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!
  6. Replies
    20
    Views
    1,676

    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...
  7. Replies
    20
    Views
    1,676

    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) {...
  8. Replies
    20
    Views
    1,676

    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...
  9. Replies
    20
    Views
    1,676

    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,...
  10. Replies
    20
    Views
    1,676

    Re: Basic GUI (eclipse swing)

    It's like this:




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

    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...
  12. Replies
    20
    Views
    1,676

    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...
  13. Replies
    20
    Views
    1,676

    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
  14. Replies
    20
    Views
    1,676

    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...
  15. Replies
    8
    Views
    1,250

    Re: Serializable arraylist as txt?

    okey, well it's fine, I'll read some, it's not that urgent, thx anyway!
  16. Replies
    8
    Views
    1,250

    Re: Serializable arraylist as txt?

    What do you mean 'disk file'?

    All I want is to make it readable outside eclipse
  17. Replies
    8
    Views
    1,250

    Re: Serializable arraylist as txt?

    deserialize makes it possible to 'load' a list when you start a program, yes? I will look at that, but not really what I need at this moment.



    yes, exactly, can I make a file containing text?
  18. Replies
    8
    Views
    1,250

    Serializable arraylist as txt?

    Hello, I used 'Serializable' on an arraylist, to save as a txt file, how do I make it 'readable' ? right now when I open the file it's just jibberish
    oh! I suck at Java, so help me in english :D
    ...
  19. Replies
    2
    Views
    1,107

    ArrayList value to another ArrayList

    Hello, Is there a way to insert one value of an araryList into another ArrayList?
    One arraylist will be printed, the user should chose what value he wants to be inserted into another arraylist...
  20. Replies
    4
    Views
    1,097

    Re: Objects, classes, lists true and false HELP!

    Wow, thanks, super helpful! I've accually gotten quite a bit on the rest of my code since my last post, so this was sweet, maybe it will become something in the end after all ;D thanks again.
  21. Replies
    4
    Views
    1,097

    Re: Objects, classes, lists true and false HELP!

    Well I have alittle, I don't know if im on the right track or anything, but here it is

    It's just a few rooms, with like.. a boolean, then it prints out everything, what I would like is for it to...
  22. Replies
    4
    Views
    1,097

    Objects, classes, lists true and false HELP!

    Hello, I'm getting depressed over here, can't get anything done, so I figured I'd post one of my problems here, to see what happends.
    Let's say I have this hotel, and I want to see what rooms are...
Results 1 to 22 of 22