Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to build my first project, can this be done?  RSS feed

 
Emiliano Rodriguez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, i've been learning some of the basics of swing and decided to give my idea a try. But after some research im not even sure that this can be done in JAVA !

My idea: I want to build a program that keep track of the Systems Engineering students career status. But i wanna do so through a graphic interface.

So the main screen will have a panel for each subject, sorted by year, and showing all the subjects of the career (for now). Through interaction you will be able to set the status of each subject (status can be unable to enroll, can enroll, currently subscribed, course taken, final exam taken).

Here is a silly drawing i made to get an idea of how to organize the information (sorry for the spanish).



I found a couple challenging parts.

First: sort the panels as i want to. I don't want to use a null layout, but even the loosest one (GridBagLayout) seems too static

Second: I would like to add a functionality that when you hover a subject, it shows you all the other subjects related to it (prerequisites) and show with colors whatever you are missing to take that course/final.

To achieve this i have two ideas. When i hover the subject, draw lines to link with prerequisites. But it seems that drawing non-straight lines can be a pain, if can be done at all.
The second idea is to make a lightbox system. That means if i hover a subject it will glow, as well as the rest of the prerequisite subjects (and if possible the rest of the screen to go darker).

Is this too much for a first project?

TLDR
- Best way to freely order labels in the screen?
- Can i make a system of arrows that only shows when i hover a panel?
- Is there a way to make a lightbox effect in JAVA, also when hovering?
- Is this too much for a newb?

Thanks in advance.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Emiliano Rodriguez wrote:
TLDR
- Best way to freely order labels in the screen?
- Can i make a system of arrows that only shows when i hover a panel?
- Is there a way to make a lightbox effect in JAVA, also when hovering?
- Is this too much for a newb?

Thanks in advance.


1) I would recommend nested GridLayout
2) Sure. You can add a MouseMotionListener to figure out the hover trigger
3) Sure. You can trigger off changes to your item's background/foreground/border/etc on hover trigger. For graphical manipulation such as custom painting of lines, check out https://docs.oracle.com/javase/tutorial/uiswing/painting/
4) Nothing is too much if you break down the problem into smaller problems and are mentally prepared to get it wrong before you get it right ;)
 
Campbell Ritchie
Marshal
Posts: 55703
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You should have a students system running without a GUI before you try writing the GUI.
 
Emiliano Rodriguez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both, i liked the idea of breaking down the problem in smaller parts!

Will try again this weekend using gridlayout
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!