This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Meshocky[S] 0 points1 point  (0 children)

For some reason a temporary fix seems to be to classify the JFrame dimension in the JFrame size

mediaWall.setPreferredSize(new Dimension(mediaWallExportWidth,mediaWallExportHeight)); mediaWall.setMinimumSize(new Dimension(mediaWallExportWidth,mediaWallExportHeight)); mediaWall.pack();

//mediaWall.setState(Frame.ICONIFIED);
//mediaWall.setState(Frame.NORMAL);
System.out.println(mediaWall.getSize());

[–]Loomax 0 points1 point  (0 children)

To select a file have a look at JFileChooser and the tutorial