Ok, so I am wrapping up my first fully-formed, beautiful, Java program. It's a practice program I've been using to teach myself various concepts. It's an election Ballot program. Essentially the user creates a Ballot, sets up elected offices and the candidates running for those offices, and then hits run, and the program creates a new Ballot window that has all of the information in it.
Everything works perfectly :), but it's led to me having a question that I can't seem to find an answer to online.
The size of the Ballot that is generated (the height not the width) is determined by the size of the longest list of candidates for a particular office. Each new office is another line in the panel, and the panel and the frame respond according. All of this is fine, and the way that it should be.
Problem is, it can lead to some LARGE windows. On my 1080p monitor, it can be nearly the full height of the monitor. And that's NOT an exceptional case, I used real ballots (in this case, the 2012 ballot from my town) as a model, so having this many candidates on a ballot is very normal.
So, after that long story, I'm wondering about best practices when designing windows. The best way to take screen resolution into account and avoid creating problems with a window that might be too large.
Thanks.