• Post Reply Bookmark Topic Watch Topic
  • New Topic

Component access  RSS feed

 
Phil Druid
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Netbeans GUI application and want to avoid spaghetti code by responding to events in a separate package/classes.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A noble ideal indeed. You might want to search the net or otherwise learn about MVC.

It's really difficult to write spaghetti code in Java though. That went out with goto (which is a reserved keyword in Java, but only to ensure it's not used).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!