Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
I developed a swing application using group layout. It resizes when I resize the frame but when I change the screen resolution or when I run the application in a laptop which has small sized screen, the components over lap each other. I need my application to fit according to the screen resolution
Sorry to upload netbeans generated code, my code is in office. The code is as follows
According to the list item selected, an internal frame will appear in the desktop pane. I use group layout for that internal frame too.
Screenshot-from-2014-09-26-23-04-35.png
Screen shot of designed frame
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Partheban Udayakumar wrote:... when I run the application in a laptop which has small sized screen, the components over lap each other. I need my application to fit according to the screen resolution
You can't put a quart of beer in a pint bottle. IOW, you have to design your GUI for the lowest resolution on which the program may need to be run. And this is true of any GUI platform; it's not unique to Java or GroupLayout.
If you have the time and energy, you could develop different versions of the UI and have the program decide, based on K Tsang's advice, which one to launch. Or you can encase the whole shebang in a JScrollPane and let users of small screens keep scrolling.
luck, db
There are no new questions, but there may be new answers.