Menu

#10 Add a second vertical orientation to NamedEntityComponent

open
nobody
5
2004-07-01
2004-07-01
No

My list of entity types is getting long and so I wanted
the buttons to be in two columns. I copied
NamedEntityComponent to my own source directory and
added the following lines of code in the obvious places:

public static final int VERTICAL_2 = 2;

if (outcomeOrientation == VERTICAL_2)
typePnl = new JPanel(new
GridLayout((names.length+1)/2, 2));

This seems to have given me the desired behavior. Any
chance you could add this to your code so that I don't
have to have a separate class? Thanks.

Discussion


Log in to post a comment.