Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    21
  • comments
    30
  • views
    12142

me VS layout managers

Sign in to follow this  
pinacolada

168 views

Nodes finally have names :)



This came at the end of a long struggle, which started with a simple desire for me to have a pop-up toolbar on the right side where you can edit details about a node (such as its name). During the process, I ended up having to learn way more than I ever wanted to know about the interaction between Java components, containers, and layout managers. Here's what I learned:
#1 Layout managers are a good idea
#2 Java's selection of layout managers is crap
#3 The only decent general-purpose layout manager is SpringLayout
#4 SpringLayout hardly ever does what you want, you need to understand how it works internally in order to make it do what you want
#5 What the hell is the point of having a class if I need to understand how it works internally
#6 I'm going to roll my own general-purpose layout manager

But not today. I'm going back to getting real features done before I start fighting the GUI again. No doubt that I could spend weeks fiddling with Swing.

Also I did a TON of refactoring. And I deleted some abandoned source code, bringing my lines of code down to 3900 :(
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!