Search:

Type: Posts; User: Wolverine89

Page 1 of 4 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    218
    Views
    15,109

    Re: Chess Program

    and do you know how i can make an desktop executable? i have my code in eclipse with a main method in the controller class but i want something with a pictogram so i starts like a normal program...
  2. Replies
    218
    Views
    15,109

    Re: Chess Program

    hello any idea how i can set a accelerator for a menu item with shift, mac, letter

    item.setAccelerator(KeyStroke.getKeyStroke(
    java.awt.event.KeyEvent.VK_S,
    ...
  3. Replies
    218
    Views
    15,109

    Re: Chess Program

    i have a map in the package assets. this map contains the chesspieces .gif files. Next i made a new package in the src folder and imported the assets map in the view package
  4. Replies
    218
    Views
    15,109

    Re: Chess Program

    fucked up the program

    the imageicons in chesspiecesview class are null pointers tried to add them but doesnt work. I made a folder in eclipse with the name assets copied the .gif files in this map...
  5. Replies
    218
    Views
    15,109

    Re: Chess Program

    i understand sorry i am slow witted

    --- Update ---

    one question after i split them how can i add them to the different .setFen() and .setSubscription() methods
  6. Replies
    218
    Views
    15,109

    Re: Chess Program

    this piece of code is working. It reads the lines i have saved in a file but this is the result and puts both lines in the subscription bar. Any idea how i can separate them?

    Default...
  7. Replies
    218
    Views
    15,109

    Re: Chess Program

    yes but you have to code this in java right? so the program knows we want to save it that way

    --- Update ---

    its more like how can i code that? I access the data with infopanel.getFen() and...
  8. Replies
    218
    Views
    15,109

    Re: Chess Program

    Yes i read your posts! But i dont know how to apply that.

    I have to use the bufferedwriter right? and if i write something to the file i need infopanel.getFen and infopanel.getDescription to get...
  9. Replies
    218
    Views
    15,109

    Re: Chess Program

    i use a scanner to read next lines in the file and add it to a string but how can i split the subscription from the fen

    --- Update ---



    private void openFile(File file){
    ...
  10. Replies
    218
    Views
    15,109

    Re: Chess Program

    Description
    Fen

    whats this?



    2266

    first jtextfield is description right under it jtextfield fen-notation
  11. Replies
    218
    Views
    15,109

    Re: Chess Program

    and my question is how can i design a file layout to handle that can you give code examples need to finish this deadline is tomorrow

    and thanks for all you help last week! learned a lot!
  12. Replies
    218
    Views
    15,109

    Re: Chess Program

    Each chessboard is associated with one FEN String, if the file has more boards it also contains more fens. so you say i have to save the FEN? what about the description
  13. Replies
    218
    Views
    15,109

    Re: Chess Program

    The fen string with description! So i fill in a fen-string with description white-to-win.. that needs to be saved i think. What you suggest is to save the fen and description and when its opened the...
  14. Replies
    218
    Views
    15,109

    Re: Chess Program

    another question.

    How can i save the current diagram? All ready have some save en open code with extension cmd but how can i save the chessboard and fen to a file is in a container with...
  15. Replies
    218
    Views
    15,109

    Re: Chess Program

    I have to program this in the controller class wright? the controller class makes the frame and the jpanel with different classes from the view which contains jpanel
  16. Replies
    218
    Views
    15,109

    Re: Chess Program

    i asked but its not necessary to define how many objects are allowed to be made.

    Another question. This is the program single window with fen, board en some buttons. this represents one FEN...
  17. Replies
    218
    Views
    15,109

    Re: Chess Program

    thanks, another question is there a way to define how many instances of a specific object are allowed to be made.

    Like there may only be one WHITE KING K object. Only 8 BLACK PAWN P objects are...
  18. Replies
    218
    Views
    15,109

    Re: Chess Program

    To check if two Strings are the same, you can use .equals(); Is there a similair methode for type char (Character) to check if two char are the same
  19. Replies
    218
    Views
    15,109

    Re: Chess Program

    Hi i have this piece of code but dont know what come characters mean..



    int row = 7;
    int col = 0;
    while (index < fen.length() && fen.charAt(index) != ' ') {
    ch =...
  20. Replies
    218
    Views
    15,109

    Re: Chess Program

    The only thing i have to do is, check the input from the user in the fenbar. Does it contains illegal characters make exceptions for them and print it out in the JTextArea which is in the infopanel...
  21. Replies
    218
    Views
    15,109

    Re: Chess Program

    it works just had to add a call to the controller object and remove the current chessboardview...this.remove(chessboardview) and after that add the new one
  22. Replies
    218
    Views
    15,109

    Re: Chess Program

    okay

    Now i understand it:) and it works. The only problem is i have to press the empty button 2 times before the pieces are set to default. the first time its some weird GUI not all the pieces...
  23. Replies
    218
    Views
    15,109

    Re: Chess Program

    Ive got it working. But still my big problem is, i have 2 buttons with actionlisteners each with a reference to the controller class. In the controller class which implements ActionListener there is...
  24. Replies
    218
    Views
    15,109

    Re: Chess Program

    i have butt the square class also contains a field en method which sets a piece on that square and empty it to
  25. Replies
    218
    Views
    15,109

    Re: Chess Program

    spend the night debugging and now i am back to the point i was. Done a little bit more en with "System.out.println" as you suggested i see that the Fen notation works. It empty all squares en places...
Results 1 to 25 of 91
Page 1 of 4 1 2 3 4