Hey,
I am writing a small program, and it has to display a simple picture in a window (JFrame).I can draw and display the pic, but when I use frame.pack(), the size of the frame is too small to display the pic!
I have drawn the pic on a regular JPanel with drawImage() in the paintComponent() method.
Can anybody tell me how to size the frame that it shows the entire picture ?
Thanks,
nick
I am writing a small program, and it has to display a simple picture in a window (JFrame).I can draw and display the pic, but when I use frame.pack(), the size of the frame is too small to display the pic!
I have drawn the pic on a regular JPanel with drawImage() in the paintComponent() method.
Can anybody tell me how to size the frame that it shows the entire picture ?
Thanks,
nick