This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I'm not sure I understand your question. Are you looking for a way to get a list of the names of people (or a single person) who got the highest grade, so that you can display it in a Swing application?
If so, such a query might look like this:
It's a bit simpler if you have students and grades in the same table.