• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI question again

 
Michael Kelleher
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many lines long are your GUI's? I find it hard to believe that they are anywhere close to less than 800 or 1000 lines long. But, maybe I'm doing something wrong.

Does anyone have any kind of feedback on this?

Thanks.
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mine is 432 lines. But...it's not done yet It is pretty close, though.
 
Michael Kelleher
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Anne,

Does that 432 lines include all of the listeners: ActionListener, TableModelListener, ListSelectionListener?

Which project are you working on?
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm doing UrlyBird 1.2.2. Yes, it does include all listeners, except TableModelListener, which is a separate class. Not sure if it needs to be, but my TableModel is, so it follows suit. I may have to add more comments, but will also clean up imports, so should balance out. I'm not quite done yet, so it could still grow depending on what I decide to do with it. GUIs can get quite large without too much trouble. I did one in QT, which is a C++ library and it was well over 400 lines, very little of which were comments because I'm lazy and didn't write that many. Trying to change that...have to for this project :roll:
 
Michael Kelleher
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on URLyBird 1.2.1

Based on your reply, I have started re-thinking my design, and re-designing it. Hopefully I can cut down the size. Rihgt now, my listener code is easily 700 lines, very little or no comments right now. My view is probably 400 lines. Significantly higher than what you have.

The feature set for your GUI, do you allow for alot of functionality, without getting too specific. I am not sure how much about specifics we are allowed to talk about on the site.
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am following others' suggestions and keeping it simple. Search on Name, location, and both, with options for "any" in both dropdowns. I'm using dropdowns populated from the file as another means of keeping it simple. The user can't make a typo that way and it greatly simplified my searching algorithm, which took me 2 1/2 days to do as is. I did not have to do any string splitting or use regex, which I thought I would have to do when I first started. I have not coded my "Reserve" button yet, so I still have a great deal of work to do, and am still working in standalone only. Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic