1 | JFrame:
|
---|
2 | name: frame
|
---|
3 | title: frame.title
|
---|
4 | size: 800x600
|
---|
5 | minimumSize: 400x300
|
---|
6 | locationRelativeTo: null
|
---|
7 | defaultCloseOperation: doNothingOnClose
|
---|
8 | onWindowOpened: [validatePath,execDepotUpdate,checkUpdates,focus]
|
---|
9 | onWindowClosing: [$confirm,closeFrames,saveLocalData,exit]
|
---|
10 | iconImage: img.kdt
|
---|
11 | content:
|
---|
12 | - Action(name=exitAction, text=menu.exit, toolTipText=menu.exitTooltip, icon=img.exit, onAction=[$confirm,closeFrames,saveLocalData,exit])
|
---|
13 | - Action(name=settings, text=menu.settings, toolTipText=menu.settingsTooltip, icon=img.settings, onAction=[showSettings])
|
---|
14 | - JMenuBar:
|
---|
15 | - JMenu(name=fileMenu, text=menu.file):
|
---|
16 | - JMenuItem(action=settings)
|
---|
17 | - JMenuItem(action=exitAction)
|
---|
18 | - JToolBar(name=tools, floatable=false, orientation=0):
|
---|
19 | - JButton(action=exitAction, hideActionText=true)
|
---|
20 | - JToolBarSeparator()
|
---|
21 | - JButton(action=settings, hideActionText=true)
|
---|
22 | - JPanel(name=contents):
|
---|
23 | - JPanel(name=panMods):
|
---|
24 | - JLabel(name=lblModTypes, text=lblModTypes.text)
|
---|
25 | - JComboBox(name=cmbModTypes, onAction=modTypeSelection)
|
---|
26 | - JScrollPane(name=scrollMods, vScrollBar=always, hScrollBar=never):
|
---|
27 | JTable(name=tblMods)
|
---|
28 | - JButton(name=btnSortAlpha, onAction=sortAlpha, text=A-Z)
|
---|
29 | - JButton(name=btnSortNumber, onAction=sortPackageNumber, text=0-9)
|
---|
30 | - MigLayout: |
|
---|
31 | [grow]
|
---|
32 | lblModTypes<,cmbModTypes [min]
|
---|
33 | scrollMods [grow]
|
---|
34 | >btnSortAlpha=1<,btnSortNumber=1< [min]
|
---|
35 | - MigLayout: |
|
---|
36 | [pref]
|
---|
37 | panMods [grow]
|
---|
38 | - MigLayout:
|
---|
39 | layoutConstraints: wrap 1
|
---|
40 | columnConstraints: grow
|
---|
41 | rowConstraints: grow
|
---|
42 | constraints:
|
---|
43 | - tools: dock north
|
---|
44 | - contents: grow
|
---|