Search:

Type: Posts; User: Wolverine89

Page 1 of 5 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,847

    int cannot be dereferenced

    hello,

    why do i get the error/message "int cannot be dereferenced" in bluej?



    import java.util.Random;

    public class KassaSimulator
    {
  2. Replies
    4
    Views
    2,635

    Re: Bubble Sort on double Linked List

    whats a profiler?
  3. Replies
    4
    Views
    2,635

    Re: Bubble Sort on double Linked List

    anybody?
  4. Replies
    4
    Views
    2,635

    Bubble Sort on double Linked List

    Hi guys,

    What's wrong with my code? I have a Link class and a Linked List class. The Link class contains one random number. The Linked List class creates a new list. The size of that list is up to...
  5. Replies
    1
    Views
    1,023

    Make code more compact

    Hi guys,

    The code below works. The code does what it should do. But is there a way to make the code more compact. Writing "beautifull code". Someone got some suggestions?



    public void...
  6. Replies
    1
    Views
    1,215

    [SOLVED] Re: setAccelarator keyevent

    this was the solution:


    item.setAccelerator(KeyStroke.getKeyStroke(
    java.awt.event.KeyEvent.VK_S,
    java.awt.event.InputEvent.SHIFT_MASK |...
  7. Replies
    218
    Views
    15,102

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

    [SOLVED] setAccelarator keyevent

    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,
    java.awt.Event.META_MASK));

    this...
  9. Replies
    218
    Views
    15,102

    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,
    ...
  10. Replies
    218
    Views
    15,102

    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
  11. Replies
    218
    Views
    15,102

    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...
  12. Replies
    218
    Views
    15,102

    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
  13. Replies
    218
    Views
    15,102

    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...
  14. Replies
    218
    Views
    15,102

    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...
  15. Replies
    218
    Views
    15,102

    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...
  16. Replies
    218
    Views
    15,102

    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){
    ...
  17. Replies
    218
    Views
    15,102

    Re: Chess Program

    Description
    Fen

    whats this?



    2266

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

    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!
  19. Replies
    218
    Views
    15,102

    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
  20. Replies
    218
    Views
    15,102

    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...
  21. Replies
    218
    Views
    15,102

    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...
  22. Replies
    218
    Views
    15,102

    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
  23. Replies
    218
    Views
    15,102

    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...
  24. Replies
    218
    Views
    15,102

    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...
  25. Replies
    218
    Views
    15,102

    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
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4