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...
Type: Posts; User: Wolverine89
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...
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,
...
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
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...
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
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...
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...
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...
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){
...
Description
Fen
whats this?
2266
first jtextfield is description right under it jtextfield fen-notation
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!
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
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...
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...
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
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...
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...
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
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 =...
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...
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
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...
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...
i have butt the square class also contains a field en method which sets a piece on that square and empty it to
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...