Answer the question
In order to leave comments, you need to log in
How to make the right previews?
How best to display image previews, now I display them simply on the button, but if there are a lot of images, they go to the bottom, overlapping the rest of the interface elements. In general, how and on what to display clickable previews?
To make it clearer, here is a piece of code that generates these previews:
void createImagesTileMap(AnchorPane pane){
tileButtonWithImage = new ArrayList();
double xImage = 10.0;
double yImage = 10.0;
for(int i = 0;i<buttonGetDirectory.getFileList().size();i++){
ButtonWithImage button = new ButtonWithImage(pane,xImage,yImage,100.0,100.0,buttonGetDirectory.getFileList().get(i).toString());
tileButtonWithImage.add(button);
xImage+=130.0;
if(xImage>600.0){
xImage = 10.0;
yImage+=130.0;
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question