How to change the size of a Jfilechooser?

Asked

Viewed 121 times

0

Hello, I wonder if anyone knows any way to increase the size of a Jfilechooser like this :inserir a descrição da imagem aqui

I would like it to fill up all the space left on the screen, to make it easier to locate the files. Thanks in advance, Good Night !

1 answer

0


Try chooser.setSize(new Dimension(x, y));.
Substitute x and y for a value of your choice.

  • Unfortunately it didn’t work out :(

  • 1

    I discovered here, in case it would be : file.setPreferredSize(new Dimension(x, y));

Browser other questions tagged

You are not signed in. Login or sign up in order to post.