hrle
unread,Feb 13, 2012, 12:23:30 AM2/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JavaBuilders
Here is my YAML:
JFrame(name=mainWindow, title=mainWindow.title, iconImage=/sample/
icon.png, size=520x440, locationRelativeTo=null,
defaultCloseOperation=exitOnClose):
- JMenuBar:
- JMenu(name=fileMenu, text=menu.file):
- JMenuItem(name=fileMenuOpen, text=menu.file.open, icon=/
sample/open.png, onAction=onFileOpenMenuClick)
- JMenuItem(name=fileMenuClose, enabled=false,
text=menu.file.close, icon=/sample/close.png,
onAction=onFileCloseMenuClick)
- JMenuItem(name=fileMenuSave, enabled=false,
text=menu.file.save, icon=/sample/save.png,
onAction=onFileSaveMenuClick)
- JSeparator()
- JMenuItem(name=fileMenuExit, text=menu.file.exit, icon=/
sample/exit.png, onAction=onFileExitMenuClick)
- JMenu(name=helpMenu, text=menu.help):
- JMenuItem(name=fileMenuAbout, text=menu.file.about,
icon=/sample/about.png)
- JPopupMenu(name=contextMenu):
- JMenuItem(name=contextMenuAddProfile,
text=context.profile.add, icon=/sample/add.png)
- JMenuItem(name=contextMenuDeleteProfile,
text=context.profile.delete, icon=/sample/remove.png, enabled=false)
- JSplitPane(name=splitPane, orientation=horizontalSplit,
resizeWeight=0.35):
- JScrollPane(name=policyTreeScrollPane, groupTitle=policies):
PolicyTree(name=policyTree, showsRootHandles=true,
rootVisible=false, onSelection=onPoliciesTreeNodeSelection,
selectionModel=1)
- JPanel(name=detailsPanel, groupTitle=details):
- MigLayout(layoutConstraints="insets 0 0 0 0",
columnConstraints="grow, push, fill", rowConstraints="grow, push,
fill"):
The PolicyTree class is extended from JTree. But I also tried setting
selectionModel on plain vanilla JTree but it also gives me such
exception.
I tried setting selectionModel value to everything that crossed my
mind (SINGLE_TREE_SELECTION, some integer, string like "single"...)
also with no avail.