hello,
why do i get the error/message "int cannot be dereferenced" in bluej?
import java.util.Random;
public class KassaSimulator
{
Type: Posts; User: Wolverine89
hello,
why do i get the error/message "int cannot be dereferenced" in bluej?
import java.util.Random;
public class KassaSimulator
{
whats a profiler?
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...
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...
this was the solution:
item.setAccelerator(KeyStroke.getKeyStroke(
java.awt.event.KeyEvent.VK_S,
java.awt.event.InputEvent.SHIFT_MASK |...
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,
java.awt.Event.META_MASK));
this...
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