From d88d6f2c55f880d354d69d0324d780a7536ef5d2 Mon Sep 17 00:00:00 2001 From: Craig Wisniewski Date: Thu, 18 May 2023 21:34:47 +0930 Subject: [PATCH 1/8] Fix for gaps in initative list --- .../java/net/rptools/maptool/model/Zone.java | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/rptools/maptool/model/Zone.java b/src/main/java/net/rptools/maptool/model/Zone.java index 7736e44760..06edd954ba 100644 --- a/src/main/java/net/rptools/maptool/model/Zone.java +++ b/src/main/java/net/rptools/maptool/model/Zone.java @@ -601,18 +601,27 @@ public Zone(Zone zone, boolean keepIds) { } } // Set the initiative list using the newly create tokens. + int newCurrent = -1; + int oldCurrent = zone.initiativeList.getCurrent(); if (saveInitiative.length > 0) { + int newInd = 0; for (int i = 0; i < saveInitiative.length; i++) { Token token = (Token) saveInitiative[i][0]; - initiativeList.insertToken(i, token); - TokenInitiative ti = initiativeList.getTokenInitiative(i); - TokenInitiative oldti = (TokenInitiative) saveInitiative[i][1]; - ti.setHolding(oldti.isHolding()); - ti.setState(oldti.getState()); + if (token != null) { + initiativeList.insertToken(newInd, token); + TokenInitiative ti = initiativeList.getTokenInitiative(newInd); + TokenInitiative oldti = (TokenInitiative) saveInitiative[i][1]; + ti.setHolding(oldti.isHolding()); + ti.setState(oldti.getState()); + if (oldCurrent == i) { + newCurrent = newInd; + } + newInd++; + } } } initiativeList.setZone(this); - initiativeList.setCurrent(zone.initiativeList.getCurrent()); + initiativeList.setCurrent(newCurrent); initiativeList.setRound(zone.initiativeList.getRound()); initiativeList.setHideNPC(zone.initiativeList.isHideNPC()); From 6875a4888e34232a87e400384dcd10101387b1aa Mon Sep 17 00:00:00 2001 From: Craig Wisniewski Date: Thu, 18 May 2023 21:42:28 +0930 Subject: [PATCH 2/8] Add comment --- src/main/java/net/rptools/maptool/model/Zone.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/rptools/maptool/model/Zone.java b/src/main/java/net/rptools/maptool/model/Zone.java index 06edd954ba..0b33c2c80f 100644 --- a/src/main/java/net/rptools/maptool/model/Zone.java +++ b/src/main/java/net/rptools/maptool/model/Zone.java @@ -601,6 +601,7 @@ public Zone(Zone zone, boolean keepIds) { } } // Set the initiative list using the newly create tokens. + // We also have to work around old campaign issues where there may be empty positions in the initiative list int newCurrent = -1; int oldCurrent = zone.initiativeList.getCurrent(); if (saveInitiative.length > 0) { From 77c1f4e304f7e711c9ec616cfa32be7fd68909c3 Mon Sep 17 00:00:00 2001 From: Craig Wisniewski Date: Thu, 18 May 2023 21:46:26 +0930 Subject: [PATCH 3/8] spotless --- src/main/java/net/rptools/maptool/model/Zone.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/rptools/maptool/model/Zone.java b/src/main/java/net/rptools/maptool/model/Zone.java index 0b33c2c80f..2459ab8f44 100644 --- a/src/main/java/net/rptools/maptool/model/Zone.java +++ b/src/main/java/net/rptools/maptool/model/Zone.java @@ -601,7 +601,8 @@ public Zone(Zone zone, boolean keepIds) { } } // Set the initiative list using the newly create tokens. - // We also have to work around old campaign issues where there may be empty positions in the initiative list + // We also have to work around old campaign issues where there may be empty positions in the + // initiative list int newCurrent = -1; int oldCurrent = zone.initiativeList.getCurrent(); if (saveInitiative.length > 0) { From 955a88b67b47eea509962efe69c983a7ffa8230c Mon Sep 17 00:00:00 2001 From: Kenneth VanderLinde Date: Sat, 20 May 2023 23:36:47 -0700 Subject: [PATCH 4/8] Fix path for Images.GRID_BORDER_ISOMETRIC --- .../net/rptools/maptool/client/ui/theme/RessourceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/rptools/maptool/client/ui/theme/RessourceManager.java b/src/main/java/net/rptools/maptool/client/ui/theme/RessourceManager.java index 154397c24a..88d4956cb0 100644 --- a/src/main/java/net/rptools/maptool/client/ui/theme/RessourceManager.java +++ b/src/main/java/net/rptools/maptool/client/ui/theme/RessourceManager.java @@ -235,7 +235,7 @@ public class RessourceManager { put(Images.DECORATION_RPTOK, IMAGE_DIR + "rptokIcon.png"); put(Images.EMPTY, IMAGE_DIR + "empty.png"); put(Images.GRID_BORDER_HEX, IMAGE_DIR + "hexBorder.png"); - put(Images.GRID_BORDER_ISOMETRIC, IMAGE_DIR + "hexBorder.png"); + put(Images.GRID_BORDER_ISOMETRIC, IMAGE_DIR + "isoBorder.png"); put(Images.GRID_BORDER_SQUARE, IMAGE_DIR + "whiteBorder.png"); put(Images.GRID_BORDER_SQUARE_RED, IMAGE_DIR + "grid-square-red.png"); put(Images.HEROLABS_PORTRAIT, IMAGE_DIR + "powered_by_hero_lab_small.png"); From 7ff7f25d10949b956666481b17da1e78dfb8d7e2 Mon Sep 17 00:00:00 2001 From: Thomas Kunze Date: Tue, 23 May 2023 22:40:01 +0200 Subject: [PATCH 5/8] change compression to zstd. --- build.gradle | 2 +- .../rptools/clientserver/simple/AbstractConnection.java | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 92d87639d3..d19aa7bef8 100644 --- a/build.gradle +++ b/build.gradle @@ -459,7 +459,7 @@ dependencies { implementation 'com.google.guava:guava:31.0.1-jre' // compression of messages between client and server implementation 'org.apache.commons:commons-compress:1.22' - implementation 'org.tukaani:xz:1.9' + implementation 'com.github.luben:zstd-jni:1.5.5-3' // intellij forms runtime implementation 'com.jetbrains.intellij.java:java-gui-forms-rt:223.7571.182' // layout for forms created in code diff --git a/src/main/java/net/rptools/clientserver/simple/AbstractConnection.java b/src/main/java/net/rptools/clientserver/simple/AbstractConnection.java index 635d865991..c57208c089 100644 --- a/src/main/java/net/rptools/clientserver/simple/AbstractConnection.java +++ b/src/main/java/net/rptools/clientserver/simple/AbstractConnection.java @@ -26,8 +26,8 @@ import net.rptools.clientserver.ActivityListener; import net.rptools.clientserver.ActivityListener.Direction; import net.rptools.clientserver.ActivityListener.State; -import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream; -import org.apache.commons.compress.compressors.lzma.LZMACompressorOutputStream; +import org.apache.commons.compress.compressors.zstandard.ZstdCompressorInputStream; +import org.apache.commons.compress.compressors.zstandard.ZstdCompressorOutputStream; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -84,7 +84,7 @@ public synchronized void addMessage(Object channel, byte[] message) { private byte[] compress(byte[] message) { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(message.length); - OutputStream ios = new LZMACompressorOutputStream(baos); + OutputStream ios = new ZstdCompressorOutputStream(baos); ios.write(message); ios.close(); @@ -96,10 +96,9 @@ private byte[] compress(byte[] message) { } private byte[] inflate(byte[] compressedMessage) { - ByteArrayOutputStream baos = new ByteArrayOutputStream(compressedMessage.length); InputStream bytesIn = new ByteArrayInputStream(compressedMessage); try { - InputStream ios = new LZMACompressorInputStream(bytesIn); + InputStream ios = new ZstdCompressorInputStream(bytesIn); var decompressed = ios.readAllBytes(); ios.close(); return decompressed; From d47143866f02bdf9ee451b5da40bb5b356cf34a5 Mon Sep 17 00:00:00 2001 From: cwisniew Date: Mon, 29 May 2023 19:41:18 +0930 Subject: [PATCH 6/8] fix for template/drawing NPE --- src/main/java/net/rptools/maptool/model/Zone.java | 8 ++++---- .../java/net/rptools/maptool/model/drawing/Drawable.java | 4 +++- .../net/rptools/maptool/model/drawing/LineTemplate.java | 8 ++++++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/rptools/maptool/model/Zone.java b/src/main/java/net/rptools/maptool/model/Zone.java index 2459ab8f44..c0c0db65e2 100644 --- a/src/main/java/net/rptools/maptool/model/Zone.java +++ b/src/main/java/net/rptools/maptool/model/Zone.java @@ -2347,6 +2347,10 @@ public static Zone fromDto(ZoneDto dto) { public ZoneDto toDto() { var dto = ZoneDto.newBuilder(); + dto.setName(name); + if (playerAlias != null) { + dto.setPlayerAlias(StringValue.of(playerAlias)); + } dto.setCreationTime(creationTime); dto.setId(id.toString()); dto.setGrid(grid.toDto()); @@ -2396,10 +2400,6 @@ public ZoneDto toDto() { dto.setBoardPosition(Mapper.map(boardPosition)); dto.setDrawBoard(drawBoard); dto.setBoardChanged(boardChanged); - dto.setName(name); - if (playerAlias != null) { - dto.setPlayerAlias(StringValue.of(playerAlias)); - } dto.setIsVisible(isVisible); dto.setVisionType(ZoneDto.VisionTypeDto.valueOf(visionType.name())); dto.setLightingStyle(ZoneDto.LightingStyleDto.valueOf(lightingStyle.name())); diff --git a/src/main/java/net/rptools/maptool/model/drawing/Drawable.java b/src/main/java/net/rptools/maptool/model/drawing/Drawable.java index 4053a8fb04..2b10791b15 100644 --- a/src/main/java/net/rptools/maptool/model/drawing/Drawable.java +++ b/src/main/java/net/rptools/maptool/model/drawing/Drawable.java @@ -211,7 +211,9 @@ static Drawable fromDto(DrawableDto drawableDto) { drawable.setRadius(dto.getRadius()); var vertex = dto.getVertex(); drawable.setVertex(new ZonePoint(vertex.getX(), vertex.getY())); - drawable.setQuadrant(AbstractTemplate.Quadrant.valueOf(dto.getQuadrant())); + if (!dto.getQuadrant().isEmpty()) { + drawable.setQuadrant(AbstractTemplate.Quadrant.valueOf(dto.getQuadrant())); + } drawable.setMouseSlopeGreater(dto.getMouseSlopeGreater()); var pathVertex = dto.getPathVertex(); drawable.setPathVertex(new ZonePoint(pathVertex.getX(), pathVertex.getY())); diff --git a/src/main/java/net/rptools/maptool/model/drawing/LineTemplate.java b/src/main/java/net/rptools/maptool/model/drawing/LineTemplate.java index 1c146e7bbb..4ebfab6c4d 100644 --- a/src/main/java/net/rptools/maptool/model/drawing/LineTemplate.java +++ b/src/main/java/net/rptools/maptool/model/drawing/LineTemplate.java @@ -486,10 +486,14 @@ public DrawableDto toDto() { .setZoneId(getZoneId().toString()) .setRadius(getRadius()) .setVertex(getVertex().toDto()) - .setQuadrant(getQuadrant().name()) .setMouseSlopeGreater(isMouseSlopeGreater()) - .setPathVertex(getPathVertex().toDto()) .setDoubleWide(isDoubleWide()); + if (getPathVertex() != null) { + dto.setPathVertex(getPathVertex().toDto()); + } + if (getQuadrant() != null) { + dto.setQuadrant(getQuadrant().name()); + } if (getName() != null) dto.setName(StringValue.of(getName())); From 66d9e3635c73e81e42e935e71149c863df7b1042 Mon Sep 17 00:00:00 2001 From: cwisniew Date: Mon, 29 May 2023 21:57:49 +0930 Subject: [PATCH 7/8] Fix for NPE on image list --- .../TokenBarController.java | 21 +- .../dialog/edit/TokenPropertiesDialog.java | 2113 +++++++++++------ 2 files changed, 1396 insertions(+), 738 deletions(-) diff --git a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java index 321237c99a..58cb5294b1 100644 --- a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java +++ b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java @@ -70,6 +70,11 @@ public class TokenBarController ItemListener, ChangeListener { + /** a bit of a hack to map i18n strings to values, but it works until we replace the dialog. */ + private final Map sidesMap = new HashMap<>(); + /** a bit of a hack to map i18n strings to values, but it works until we replace the dialog. */ + private final Map typesMap = new HashMap<>(); + /** Panel containing the campaign properties form panel */ private final AbeillePanel formPanel; @@ -255,14 +260,18 @@ public TokenBarController(AbeillePanel panel) { var typeComboBox = panel.getComboBox(TYPE); typeComboBox.setModel(new DefaultComboBoxModel()); for (var type : types) { - typeComboBox.addItem(I18N.getText(type)); + var i18n = I18N.getText(type); + typeComboBox.addItem(i18n); + typesMap.put(i18n, type); } typeComboBox.addActionListener(this); var sideComboBox = panel.getComboBox(SIDE); sideComboBox.setModel(new DefaultComboBoxModel()); for (var side : sides) { + var i18n = I18N.getText(side); sideComboBox.addItem(I18N.getText(side)); + sidesMap.put(i18n, side); } panel.getSpinner(THICKNESS).setModel(new SpinnerNumberModel(5, 2, 10, 1)); @@ -271,6 +280,7 @@ public TokenBarController(AbeillePanel panel) { panel.getSpinner(OPACITY).setModel(new SpinnerNumberModel(100, 1, 100, 5)); panel.getList(BARS).setCellRenderer(renderer); panel.getList(BARS).addListSelectionListener(this); + panel.getList(IMAGES).setModel(new DefaultListModel()); panel.getList(IMAGES).setCellRenderer(new ImageListRenderer()); panel.getList(IMAGES).addListSelectionListener(this); panel.getTextComponent(NAME).getDocument().addDocumentListener(this); @@ -741,7 +751,8 @@ public BarTokenOverlay createTokenOverlay(BarTokenOverlay updatedOverlay) { Side.valueOf(((String) formPanel.getComboBox(SIDE).getSelectedItem()).toUpperCase()); BarTokenOverlay to = null; - if (overlay.equals("SOLID_BAR")) { + String type = typesMap.get(overlay); + if (type.equals("SOLID_BAR")) { to = new DrawnBarTokenOverlay(name, color, thickness); } else if (overlay.equals("TWO_TONE_BAR")) { to = new TwoToneBarTokenOverlay(name, color, bgColor, thickness); @@ -754,11 +765,11 @@ public BarTokenOverlay createTokenOverlay(BarTokenOverlay updatedOverlay) { model.copyInto(assetIds); // Create the bars - if (overlay.equals("TWO_IMAGES_BAR")) { + if (type.equals("TWO_IMAGES_BAR")) { to = new TwoImageBarTokenOverlay(name, assetIds[1], assetIds[0]); - } else if (overlay.equals("SINGLE_IMAGE_BAR")) { + } else if (type.equals("SINGLE_IMAGE_BAR")) { to = new SingleImageBarTokenOverlay(name, assetIds[0]); - } else if (overlay.equals("MULTIPLE_IMAGES_BAR")) { + } else if (type.equals("MULTIPLE_IMAGES_BAR")) { to = new MultipleImageBarTokenOverlay(name, assetIds); } // endif } // endif diff --git a/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java b/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java index f3c6d929c4..a41e41335a 100644 --- a/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java +++ b/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java @@ -41,756 +41,1403 @@ public class TokenPropertiesDialog { /* spotless:off */ - { + { // GUI initializer generated by IntelliJ IDEA GUI Designer // >>> IMPORTANT!! <<< // DO NOT EDIT OR ADD ANY CODE HERE! - $$$setupUI$$$(); - } + $$$setupUI$$$(); + } - /** - * Method generated by IntelliJ IDEA GUI Designer - * >>> IMPORTANT!! <<< - * DO NOT edit this method OR call it in your code! - * - * @noinspection ALL - */ - private void $$$setupUI$$$() { - createUIComponents(); - mainPanel = new JPanel(); - mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(4, 4, 4, 4), -1, -1)); - mainPanel.setName("mainPanel"); - tokenImage = new JLabel(); - tokenImage.setName("tokenImage"); - this.$$$loadLabelText$$$(tokenImage, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.image")); - mainPanel.add(tokenImage, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - tabPanel = new JTabbedPane(); - tabPanel.setName("TabPane"); - tabPanel.setVisible(true); - mainPanel.add(tabPanel, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(1, 1), null, 0, false)); - final JPanel panel1 = new JPanel(); - panel1.setLayout(new GridLayoutManager(1, 1, new Insets(5, 5, 5, 5), -1, -1)); - panel1.setName("notesPanel"); - panel1.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.notes"), panel1); - panel1.add(playerNotesEditor, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel2 = new JPanel(); - panel2.setLayout(new GridLayoutManager(1, 1, new Insets(5, 5, 5, 5), -1, -1)); - panel2.setName("gmNotesPanel"); - panel2.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.gmnotes"), panel2); - panel2.add(gmNotesEditor, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel3 = new JPanel(); - panel3.setLayout(new GridLayoutManager(1, 2, new Insets(5, 5, 5, 5), -1, -1)); - panel3.setName("propertiesPanel"); - panel3.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.properties"), panel3); - final JLabel label1 = new JLabel(); - label1.setName("propertiesTable"); - label1.setText("propertiesTable"); - panel3.add(label1, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel4 = new JPanel(); - panel4.setLayout(new GridLayoutManager(17, 5, new Insets(4, 4, 4, 4), -1, -1)); - panel4.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.vbl"), panel4); - final JPanel panel5 = new JPanel(); - panel5.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel5.setName("vblPreviewPanel"); - panel4.add(panel5, new GridConstraints(0, 3, 16, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - panel5.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.vbl.preview"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel5.getFont()), new Color(-13538620))); - final JLabel label2 = new JLabel(); - label2.setName("vblPreview"); - this.$$$loadLabelText$$$(label2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl.preview")); - panel5.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel6 = new JPanel(); - panel6.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1)); - panel4.add(panel6, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JToggleButton toggleButton1 = new JToggleButton(); - toggleButton1.setName("mblToggle"); - toggleButton1.setText(""); - panel6.add(toggleButton1, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JToggleButton toggleButton2 = new JToggleButton(); - toggleButton2.setName("wallVblToggle"); - toggleButton2.setText(""); - panel6.add(toggleButton2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JToggleButton toggleButton3 = new JToggleButton(); - toggleButton3.setName("hillVblToggle"); - toggleButton3.setText(""); - panel6.add(toggleButton3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JToggleButton toggleButton4 = new JToggleButton(); - toggleButton4.setName("pitVblToggle"); - toggleButton4.setText(""); - panel6.add(toggleButton4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox1 = new JCheckBox(); - checkBox1.setActionCommand("Hide Preview"); - checkBox1.setName("hideTokenCheckbox"); - this.$$$loadButtonText$$$(checkBox1, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.preview")); - checkBox1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.preview.tooltip")); - checkBox1.setVisible(true); - panel4.add(checkBox1, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer1 = new Spacer(); - panel4.add(spacer1, new GridConstraints(16, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer2 = new Spacer(); - panel4.add(spacer2, new GridConstraints(16, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JLabel label3 = new JLabel(); - label3.setHorizontalAlignment(2); - label3.setName("ignoreColorLabel"); - this.$$$loadLabelText$$$(label3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.color")); - label3.setVisible(true); - panel4.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final ColorWell colorWell1 = new ColorWell(); - Font colorWell1Font = UIManager.getFont("Panel.font"); - if (colorWell1Font != null) colorWell1.setFont(colorWell1Font); - colorWell1.setName("vblIgnoreColorWell"); - colorWell1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.well")); - colorWell1.setVerifyInputWhenFocusTarget(true); - colorWell1.setVisible(true); - panel4.add(colorWell1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label4 = new JLabel(); - Font label4Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, label4.getFont()); - if (label4Font != null) label4.setFont(label4Font); - label4.setName("optimizationLabel"); - this.$$$loadLabelText$$$(label4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.optimize")); - label4.setVisible(true); - panel4.add(label4, new GridConstraints(5, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label5 = new JLabel(); - label5.setHorizontalAlignment(2); - label5.setName("jtsDistanceToleranceLabel"); - this.$$$loadLabelText$$$(label5, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.level")); - label5.setVisible(true); - panel4.add(label5, new GridConstraints(6, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label6 = new JLabel(); - label6.setHorizontalAlignment(2); - label6.setName("alphaSensitivityLabel"); - this.$$$loadLabelText$$$(label6, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.sensitivity")); - label6.setVisible(true); - panel4.add(label6, new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner1 = new JSpinner(); - spinner1.setName("alphaSensitivitySpinner"); - spinner1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.sensitivity.tooltip")); - spinner1.setVisible(true); - panel4.add(spinner1, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox2 = new JCheckBox(); - checkBox2.setActionCommand("Hide Preview"); - checkBox2.setName("inverseVblCheckbox"); - this.$$$loadButtonText$$$(checkBox2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.invert")); - checkBox2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.invert.tooltip")); - checkBox2.setVisible(true); - panel4.add(checkBox2, new GridConstraints(4, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JToggleButton toggleButton5 = new JToggleButton(); - toggleButton5.setName("vblColorPickerToggleButton"); - toggleButton5.setText(""); - toggleButton5.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.toggle")); - toggleButton5.setVisible(true); - panel4.add(toggleButton5, new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_SOUTHEAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label7 = new JLabel(); - label7.setHorizontalAlignment(2); - label7.setName("jtsDistanceToleranceLabel"); - this.$$$loadLabelText$$$(label7, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.method")); - label7.setVisible(true); - panel4.add(label7, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox1 = new JComboBox(); - comboBox1.setActionCommand("comboBoxChanged"); - comboBox1.setName("jtsMethodComboBox"); - comboBox1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.drop.vbl.optimize.tooltip")); - comboBox1.setVisible(true); - panel4.add(comboBox1, new GridConstraints(7, 1, 1, 2, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner2 = new JSpinner(); - spinner2.setName("jtsDistanceToleranceSpinner"); - spinner2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.spinner.tolerance.tooltip")); - spinner2.setVisible(true); - panel4.add(spinner2, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label8 = new JLabel(); - Font label8Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, label8.getFont()); - if (label8Font != null) label8.setFont(label8Font); - label8.setName("visibilityLabel"); - this.$$$loadLabelText$$$(label8, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.visiblity")); - label8.setVisible(true); - panel4.add(label8, new GridConstraints(9, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox3 = new JCheckBox(); - checkBox3.setActionCommand("Always Show\t"); - checkBox3.setHorizontalAlignment(0); - checkBox3.setName("copyOrMoveCheckbox"); - checkBox3.setSelected(true); - this.$$$loadButtonText$$$(checkBox3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.option.vbl.erase")); - checkBox3.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.option.vbl.erase.tooltip")); - checkBox3.setVisible(true); - panel4.add(checkBox3, new GridConstraints(8, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox4 = new JCheckBox(); - checkBox4.setActionCommand("Always Show\t"); - checkBox4.setHorizontalAlignment(0); - checkBox4.setName("alwaysVisibleButton"); - checkBox4.setSelected(true); - this.$$$loadButtonText$$$(checkBox4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.over")); - checkBox4.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.over.tooltip")); - checkBox4.setVisible(true); - panel4.add(checkBox4, new GridConstraints(10, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label9 = new JLabel(); - label9.setHorizontalAlignment(2); - this.$$$loadLabelText$$$(label9, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.vbl.tolerance")); - label9.setVisible(true); - panel4.add(label9, new GridConstraints(11, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner3 = new JSpinner(); - spinner3.setName("visibilityToleranceSpinner"); - spinner3.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.vbl.explanation.tooltip")); - spinner3.setVisible(true); - panel4.add(spinner3, new GridConstraints(11, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button1 = new JButton(); - button1.setActionCommand("Generate VBL\t"); - button1.setName("autoGenerateVblButton"); - this.$$$loadButtonText$$$(button1, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl")); - button1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl.tooltip")); - button1.setVisible(true); - panel4.add(button1, new GridConstraints(12, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button2 = new JButton(); - button2.setActionCommand("Clear VBL"); - button2.setName("clearVblButton"); - this.$$$loadButtonText$$$(button2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl.clear")); - button2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl.clear.tooltip")); - button2.setVisible(true); - panel4.add(button2, new GridConstraints(13, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button3 = new JButton(); - button3.setActionCommand("Clear VBL"); - button3.setName("transferVblToMap"); - this.$$$loadButtonText$$$(button3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl.tomap")); - button3.setVisible(true); - panel4.add(button3, new GridConstraints(14, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button4 = new JButton(); - button4.setActionCommand("Clear VBL"); - button4.setName("transferVblFromMap"); - this.$$$loadButtonText$$$(button4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.vbl.frommap")); - button4.setVisible(true); - panel4.add(button4, new GridConstraints(15, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel7 = new JPanel(); - panel7.setLayout(new GridLayoutManager(1, 1, new Insets(4, 4, 4, 4), -1, -1)); - panel7.setVisible(true); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.state"), panel7); - final JScrollPane scrollPane1 = new JScrollPane(); - scrollPane1.setHorizontalScrollBarPolicy(31); - panel7.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel8 = new JPanel(); - panel8.setLayout(new BorderLayout(0, 0)); - panel8.setName("statesPanel"); - scrollPane1.setViewportView(panel8); - final JPanel panel9 = new JPanel(); - panel9.setLayout(new GridLayoutManager(2, 2, new Insets(4, 4, 4, 4), -1, -1)); - panel9.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.speech"), panel9); - final JScrollPane scrollPane2 = new JScrollPane(); - scrollPane2.setHorizontalScrollBarPolicy(31); - panel9.add(scrollPane2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTable table1 = new JTable(); - table1.setName("speechTable"); - scrollPane2.setViewportView(table1); - final JButton button5 = new JButton(); - button5.setActionCommand("Clear All"); - button5.setName("speechClearAllButton"); - this.$$$loadButtonText$$$(button5, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.clearall")); - panel9.add(button5, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer3 = new Spacer(); - panel9.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel10 = new JPanel(); - panel10.setLayout(new GridLayoutManager(2, 2, new Insets(4, 4, 4, 4), -1, -1)); - panel10.setName("ownershipPanel"); - panel10.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.ownership"), panel10); - final JLabel label10 = new JLabel(); - label10.setName("ownershipList"); - label10.setText(""); - panel10.add(label10, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox5 = new JCheckBox(); - checkBox5.setActionCommand("All Players"); - checkBox5.setName("@ownedByAll"); - this.$$$loadButtonText$$$(checkBox5, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.allplayers")); - panel10.add(checkBox5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer4 = new Spacer(); - panel10.add(spacer4, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel11 = new JPanel(); - panel11.setLayout(new GridLayoutManager(7, 10, new Insets(4, 4, 4, 4), -1, -1)); - panel11.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.config"), panel11); - final JLabel label11 = new JLabel(); - this.$$$loadLabelText$$$(label11, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.shape")); - panel11.add(label11, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label12 = new JLabel(); - this.$$$loadLabelText$$$(label12, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.snaptogrid")); - panel11.add(label12, new GridConstraints(0, 3, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox6 = new JCheckBox(); - checkBox6.setName("@visible"); - checkBox6.setText(""); - panel11.add(checkBox6, new GridConstraints(0, 7, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label13 = new JLabel(); - this.$$$loadLabelText$$$(label13, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.size")); - panel11.add(label13, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox2 = new JComboBox(); - comboBox2.setActionCommand("comboBoxChanged"); - comboBox2.setName("size"); - panel11.add(comboBox2, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox3 = new JComboBox(); - comboBox3.setActionCommand("comboBoxChanged"); - comboBox3.setName("shape"); - panel11.add(comboBox3, new GridConstraints(0, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label14 = new JLabel(); - label14.setName("visibleOnlyToOwnerLabel"); - this.$$$loadLabelText$$$(label14, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.visible.owner")); - panel11.add(label14, new GridConstraints(1, 3, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label15 = new JLabel(); - label15.setName("visibleLabel"); - this.$$$loadLabelText$$$(label15, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.visible")); - panel11.add(label15, new GridConstraints(0, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label16 = new JLabel(); - label16.setName("terrainModifierLabel"); - this.$$$loadLabelText$$$(label16, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.terrain.mod")); - label16.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.terrain.mod.tooltip")); - panel11.add(label16, new GridConstraints(1, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox4 = new JComboBox(); - comboBox4.setActionCommand("comboBoxChanged"); - final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel(); - defaultComboBoxModel1.addElement("Token.TerrainModifierOperation.MULTIPLY"); - comboBox4.setModel(defaultComboBoxModel1); - comboBox4.setName("terrainModifierOperation"); - comboBox4.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.combo.terrain.mod")); - panel11.add(comboBox4, new GridConstraints(1, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField1 = new JTextField(); - textField1.setColumns(4); - textField1.setName("terrainModifier"); - textField1.setText(""); - textField1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.terrain.mod.tooltip")); - panel11.add(textField1, new GridConstraints(1, 8, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label17 = new JLabel(); - this.$$$loadLabelText$$$(label17, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.properties")); - panel11.add(label17, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox5 = new JComboBox(); - comboBox5.setActionCommand("comboBoxChanged"); - comboBox5.setName("propertyTypeCombo"); - panel11.add(comboBox5, new GridConstraints(2, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label18 = new JLabel(); - label18.setName("tokenOpacityLabel"); - this.$$$loadLabelText$$$(label18, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.opacity")); - label18.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.opacity.tooltip")); - panel11.add(label18, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label19 = new JLabel(); - this.$$$loadLabelText$$$(label19, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.sight.has")); - panel11.add(label19, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox7 = new JCheckBox(); - checkBox7.setName("@hasSight"); - checkBox7.setText(""); - panel11.add(checkBox7, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel12 = new JPanel(); - panel12.setLayout(new GridLayoutManager(2, 5, new Insets(0, 0, 0, 0), -1, -1)); - panel11.add(panel12, new GridConstraints(6, 0, 1, 9, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel13 = new JPanel(); - panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel13.setName("tokenLayoutPanel"); - panel12.add(panel13, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - panel13.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.layout"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel13.getFont()), new Color(-13538620))); - final JLabel label20 = new JLabel(); - label20.setName("tokenLayout"); - this.$$$loadLabelText$$$(label20, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.layout")); - panel13.add(label20, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel14 = new JPanel(); - panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel14.setName("portraitPanel"); - panel12.add(panel14, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - panel14.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.portrait"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel14.getFont()), new Color(-13538620))); - final JLabel label21 = new JLabel(); - label21.setName("portrait"); - this.$$$loadLabelText$$$(label21, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.portrait")); - panel14.add(label21, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel15 = new JPanel(); - panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel15.setName("charsheetPanel"); - panel12.add(panel15, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - panel15.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.handout"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel15.getFont()), new Color(-13538620))); - final JLabel label22 = new JLabel(); - label22.setName("charsheet"); - this.$$$loadLabelText$$$(label22, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.border.title.charsheet")); - panel15.add(label22, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer5 = new Spacer(); - panel12.add(spacer5, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer6 = new Spacer(); - panel12.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer7 = new Spacer(); - panel12.add(spacer7, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JComboBox comboBox6 = new JComboBox(); - comboBox6.setActionCommand("comboBoxChanged"); - comboBox6.setName("sightTypeCombo"); - panel11.add(comboBox6, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox7 = new JComboBox(); - comboBox7.setActionCommand("comboBoxChanged"); - comboBox7.setName("imageTableCombo"); - panel11.add(comboBox7, new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox8 = new JCheckBox(); - checkBox8.setName("@hasImageTable"); - checkBox8.setText(""); - panel11.add(checkBox8, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label23 = new JLabel(); - this.$$$loadLabelText$$$(label23, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.image")); - panel11.add(label23, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox9 = new JCheckBox(); - checkBox9.setName("@visibleOnlyToOwner"); - checkBox9.setText(""); - panel11.add(checkBox9, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox10 = new JCheckBox(); - checkBox10.setName("@snapToGrid"); - checkBox10.setText(""); - panel11.add(checkBox10, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label24 = new JLabel(); - label24.setName("tokenOpacityValueLabel"); - this.$$$loadLabelText$$$(label24, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.opacity.100")); - panel11.add(label24, new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label25 = new JLabel(); - label25.setName("ignoreTerrainModifierLabel"); - this.$$$loadLabelText$$$(label25, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.terrain.ignore")); - label25.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.terrain.ignore.tooltip")); - panel11.add(label25, new GridConstraints(2, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JList list1 = new JList(); - list1.setName("terrainModifiersIgnored"); - list1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.terrain.ignore.tooltip")); - list1.setVisibleRowCount(0); - panel11.add(list1, new GridConstraints(2, 7, 3, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer8 = new Spacer(); - panel11.add(spacer8, new GridConstraints(0, 9, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JSlider slider1 = new JSlider(); - slider1.setMajorTickSpacing(10); - slider1.setMinimum(0); - slider1.setMinorTickSpacing(5); - slider1.setName("tokenOpacitySlider"); - slider1.setOrientation(1); - slider1.setPaintTicks(true); - slider1.setSnapToTicks(true); - slider1.setValue(100); - slider1.setValueIsAdjusting(true); - panel11.add(slider1, new GridConstraints(2, 4, 4, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, new Dimension(-1, 100), 0, false)); - final Spacer spacer9 = new Spacer(); - panel11.add(spacer9, new GridConstraints(5, 6, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel16 = new JPanel(); - panel16.setLayout(new GridLayoutManager(2, 4, new Insets(4, 4, 4, 4), -1, -1)); - panel16.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.libToken"), panel16); - final JLabel label26 = new JLabel(); - this.$$$loadLabelText$$$(label26, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.allowURIAccess")); - panel16.add(label26, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label27 = new JLabel(); - label27.setName("Label.LibURIError"); - label27.setText(""); - panel16.add(label27, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer10 = new Spacer(); - panel16.add(spacer10, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JCheckBox checkBox11 = new JCheckBox(); - checkBox11.setName("@allowURIAccess"); - checkBox11.setText(""); - panel16.add(checkBox11, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, 1, 1, null, new Dimension(10, 10), null, 0, false)); - final Spacer spacer11 = new Spacer(); - panel16.add(spacer11, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JPanel panel17 = new JPanel(); - panel17.setLayout(new GridLayoutManager(5, 4, new Insets(4, 4, 4, 4), -1, -1)); - panel17.setVisible(false); - tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.hero"), panel17); - final JTabbedPane tabbedPane1 = new JTabbedPane(); - tabbedPane1.setName("StatblockTabPane"); - tabbedPane1.setTabPlacement(1); - tabbedPane1.setToolTipText("View the statblocks from Hero Lab"); - panel17.add(tabbedPane1, new GridConstraints(4, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel18 = new JPanel(); - panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.hero.html"), panel18); - final JScrollPane scrollPane3 = new JScrollPane(); - panel18.add(scrollPane3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JEditorPane editorPane1 = new JEditorPane(); - editorPane1.setContentType("text/plain"); - editorPane1.setEditable(false); - editorPane1.setName("HTMLstatblockTextArea"); - editorPane1.setText(""); - scrollPane3.setViewportView(editorPane1); - final JPanel panel19 = new JPanel(); - panel19.setLayout(new GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), -1, -1)); - panel19.setName("xmlStatblockPanel"); - panel19.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.hero.xml"), panel19); - final JTextField textField2 = new JTextField(); - textField2.setName("xmlStatblockSearchTextField"); - textField2.setText(""); - textField2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.statBlockSearch.tooltip")); - panel19.add(textField2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button6 = new JButton(); - button6.setActionCommand("Find"); - button6.setName("xmlStatblockSearchButton"); - this.$$$loadButtonText$$$(button6, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.action.hero.statBlockRTextScroll")); - button6.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.hero.statBlockSearch.tooltip")); - panel19.add(button6, new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label28 = new JLabel(); - label28.setName("xmlStatblockRTextScrollPane"); - label28.setText(""); - panel19.add(label28, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label29 = new JLabel(); - label29.setName("expressionLabel"); - this.$$$loadLabelText$$$(label29, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.statBlockSearch")); - panel19.add(label29, new GridConstraints(1, 0, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer12 = new Spacer(); - panel19.add(spacer12, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer13 = new Spacer(); - panel19.add(spacer13, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel20 = new JPanel(); - panel20.setLayout(new GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), -1, -1)); - panel20.setName("textStatblockPanel"); - panel20.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.hero.text"), panel20); - final JButton button7 = new JButton(); - button7.setActionCommand("Find"); - button7.setName("textStatblockSearchButton"); - this.$$$loadButtonText$$$(button7, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.action.hero.statBlockRTextScroll")); - button7.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.hero.statBlockSearch.tooltip")); - panel20.add(button7, new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField3 = new JTextField(); - textField3.setName("textStatblockSearchTextField"); - textField3.setText(""); - textField3.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.statBlockSearch.tooltip")); - panel20.add(textField3, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label30 = new JLabel(); - label30.setName("textStatblockRTextScrollPane"); - label30.setText(""); - panel20.add(label30, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label31 = new JLabel(); - label31.setName("expressionLabel"); - this.$$$loadLabelText$$$(label31, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.statBlockSearch")); - panel20.add(label31, new GridConstraints(1, 0, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer14 = new Spacer(); - panel20.add(spacer14, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer15 = new Spacer(); - panel20.add(spacer15, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel21 = new JPanel(); - panel21.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1)); - panel21.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.tab.hero.images"), panel21); - final JScrollPane scrollPane4 = new JScrollPane(); - panel21.add(scrollPane4, new GridConstraints(0, 1, 4, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JList list2 = new JList(); - list2.setName("heroLabImagesList"); - scrollPane4.setViewportView(list2); - final JButton button8 = new JButton(); - button8.setActionCommand("Set as Token Portrait"); - button8.setName("setAsPortraitButton"); - this.$$$loadButtonText$$$(button8, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.hero.setAsTokenPortrait")); - panel21.add(button8, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button9 = new JButton(); - button9.setActionCommand("Set as Token Image"); - button9.setName("setAsImageButton"); - this.$$$loadButtonText$$$(button9, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.hero.setAsTokenImage")); - panel21.add(button9, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button10 = new JButton(); - button10.setActionCommand("Set as Token Handout"); - button10.setName("setAsHandoutButton"); - this.$$$loadButtonText$$$(button10, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.hero.setAsTokenHandout")); - panel21.add(button10, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer16 = new Spacer(); - panel21.add(spacer16, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final Spacer spacer17 = new Spacer(); - panel21.add(spacer17, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JLabel label32 = new JLabel(); - label32.setName("summaryLabel"); - this.$$$loadLabelText$$$(label32, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.summary")); - panel17.add(label32, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label33 = new JLabel(); - label33.setName("portfolioLabel"); - this.$$$loadLabelText$$$(label33, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.portfolio")); - panel17.add(label33, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label34 = new JLabel(); - this.$$$loadLabelText$$$(label34, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.last")); - panel17.add(label34, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label35 = new JLabel(); - label35.setName("summaryText"); - label35.setText(""); - panel17.add(label35, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label36 = new JLabel(); - label36.setName("lastModified"); - label36.setText(""); - panel17.add(label36, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label37 = new JLabel(); - label37.setAutoscrolls(true); - label37.setName("portfolioLocation"); - label37.setText(""); - panel17.add(label37, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button11 = new JButton(); - button11.setAlignmentY(0.0f); - button11.setIconTextGap(2); - button11.setName("refreshDataButton"); - button11.setText(""); - button11.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.button.hero.refresh.tooltip.off")); - panel17.add(button11, new GridConstraints(0, 2, 3, 1, GridConstraints.ANCHOR_NORTHEAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox12 = new JCheckBox(); - checkBox12.setActionCommand("Is Ally?"); - checkBox12.setEnabled(false); - checkBox12.setName("isAllyCheckBox"); - this.$$$loadButtonText$$$(checkBox12, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.hero.isAlly")); - panel17.add(checkBox12, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer18 = new Spacer(); - panel17.add(spacer18, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer19 = new Spacer(); - panel17.add(spacer19, new GridConstraints(4, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - headPanel = new JPanel(); - headPanel.setLayout(new GridLayoutManager(4, 4, new Insets(0, 0, 0, 0), -1, -1)); - headPanel.setName(""); - mainPanel.add(headPanel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label38 = new JLabel(); - this.$$$loadLabelText$$$(label38, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); - headPanel.add(label38, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField4 = new JTextField(); - textField4.setColumns(30); - Font textField4Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, textField4.getFont()); - if (textField4Font != null) textField4.setFont(textField4Font); - textField4.setName("@name"); - textField4.setText(""); - headPanel.add(textField4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label39 = new JLabel(); - label39.setName("tokenGMNameLabel"); - this.$$$loadLabelText$$$(label39, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.gmname")); - headPanel.add(label39, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField5 = new JTextField(); - textField5.setColumns(30); - Font textField5Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, textField5.getFont()); - if (textField5Font != null) textField5.setFont(textField5Font); - textField5.setName("@GMName"); - textField5.setText(""); - headPanel.add(textField5, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox8 = new JComboBox(); - comboBox8.setActionCommand("comboBoxChanged"); - comboBox8.setName("type"); - headPanel.add(comboBox8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label40 = new JLabel(); - this.$$$loadLabelText$$$(label40, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "EditTokenDialog.label.label")); - headPanel.add(label40, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField6 = new JTextField(); - textField6.setName("@label"); - textField6.setText(""); - headPanel.add(textField6, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label41 = new JLabel(); - this.$$$loadLabelText$$$(label41, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.speechName")); - headPanel.add(label41, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField7 = new JTextField(); - textField7.setName("@speechName"); - textField7.setText(""); - headPanel.add(textField7, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer20 = new Spacer(); - headPanel.add(spacer20, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - buttonPanel = new JPanel(); - buttonPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1)); - mainPanel.add(buttonPanel, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_SOUTHEAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button12 = new JButton(); - button12.setActionCommand("Cancel"); - button12.setName("cancelButton"); - this.$$$loadButtonText$$$(button12, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.cancel")); - buttonPanel.add(button12, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button13 = new JButton(); - button13.setActionCommand("OK"); - button13.setName("okButton"); - this.$$$loadButtonText$$$(button13, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.ok")); - buttonPanel.add(button13, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer21 = new Spacer(); - mainPanel.add(spacer21, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - } + /** + * Method generated by IntelliJ IDEA GUI Designer + * >>> IMPORTANT!! <<< + * DO NOT edit this method OR call it in your code! + * + * @noinspection ALL + */ + private void $$$setupUI$$$() { + createUIComponents(); + mainPanel = new JPanel(); + mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(4, 4, 4, 4), -1, -1)); + mainPanel.setName("mainPanel"); + tokenImage = new JLabel(); + tokenImage.setName("tokenImage"); + this.$$$loadLabelText$$$(tokenImage, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.image")); + mainPanel.add(tokenImage, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + tabPanel = new JTabbedPane(); + tabPanel.setName("TabPane"); + tabPanel.setVisible(true); + mainPanel.add(tabPanel, + new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, + new Dimension(1, 1), null, 0, false)); + final JPanel panel1 = new JPanel(); + panel1.setLayout(new GridLayoutManager(1, 1, new Insets(5, 5, 5, 5), -1, -1)); + panel1.setName("notesPanel"); + panel1.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.notes"), panel1); + panel1.add(playerNotesEditor, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel2 = new JPanel(); + panel2.setLayout(new GridLayoutManager(1, 1, new Insets(5, 5, 5, 5), -1, -1)); + panel2.setName("gmNotesPanel"); + panel2.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.gmnotes"), panel2); + panel2.add(gmNotesEditor, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel3 = new JPanel(); + panel3.setLayout(new GridLayoutManager(1, 2, new Insets(5, 5, 5, 5), -1, -1)); + panel3.setName("propertiesPanel"); + panel3.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.properties"), panel3); + final JLabel label1 = new JLabel(); + label1.setName("propertiesTable"); + label1.setText("propertiesTable"); + panel3.add(label1, + new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel4 = new JPanel(); + panel4.setLayout(new GridLayoutManager(17, 5, new Insets(4, 4, 4, 4), -1, -1)); + panel4.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.vbl"), panel4); + final JPanel panel5 = new JPanel(); + panel5.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel5.setName("vblPreviewPanel"); + panel4.add(panel5, + new GridConstraints(0, 3, 16, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + panel5.setBorder( + BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.vbl.preview"), TitledBorder.DEFAULT_JUSTIFICATION, + TitledBorder.DEFAULT_POSITION, + this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel5.getFont()), new Color(-13538620))); + final JLabel label2 = new JLabel(); + label2.setName("vblPreview"); + this.$$$loadLabelText$$$(label2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl.preview")); + panel5.add(label2, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel6 = new JPanel(); + panel6.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1)); + panel4.add(panel6, + new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JToggleButton toggleButton1 = new JToggleButton(); + toggleButton1.setName("mblToggle"); + toggleButton1.setText(""); + panel6.add(toggleButton1, + new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JToggleButton toggleButton2 = new JToggleButton(); + toggleButton2.setName("wallVblToggle"); + toggleButton2.setText(""); + panel6.add(toggleButton2, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JToggleButton toggleButton3 = new JToggleButton(); + toggleButton3.setName("hillVblToggle"); + toggleButton3.setText(""); + panel6.add(toggleButton3, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JToggleButton toggleButton4 = new JToggleButton(); + toggleButton4.setName("pitVblToggle"); + toggleButton4.setText(""); + panel6.add(toggleButton4, + new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox1 = new JCheckBox(); + checkBox1.setActionCommand("Hide Preview"); + checkBox1.setName("hideTokenCheckbox"); + this.$$$loadButtonText$$$(checkBox1, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.preview")); + checkBox1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.preview.tooltip")); + checkBox1.setVisible(true); + panel4.add(checkBox1, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer1 = new Spacer(); + panel4.add(spacer1, new GridConstraints(16, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer2 = new Spacer(); + panel4.add(spacer2, new GridConstraints(16, 4, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JLabel label3 = new JLabel(); + label3.setHorizontalAlignment(2); + label3.setName("ignoreColorLabel"); + this.$$$loadLabelText$$$(label3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.color")); + label3.setVisible(true); + panel4.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final ColorWell colorWell1 = new ColorWell(); + Font colorWell1Font = UIManager.getFont("Panel.font"); + if (colorWell1Font != null) + colorWell1.setFont(colorWell1Font); + colorWell1.setName("vblIgnoreColorWell"); + colorWell1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.well")); + colorWell1.setVerifyInputWhenFocusTarget(true); + colorWell1.setVisible(true); + panel4.add(colorWell1, + new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label4 = new JLabel(); + Font label4Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, label4.getFont()); + if (label4Font != null) + label4.setFont(label4Font); + label4.setName("optimizationLabel"); + this.$$$loadLabelText$$$(label4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.optimize")); + label4.setVisible(true); + panel4.add(label4, + new GridConstraints(5, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label5 = new JLabel(); + label5.setHorizontalAlignment(2); + label5.setName("jtsDistanceToleranceLabel"); + this.$$$loadLabelText$$$(label5, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.level")); + label5.setVisible(true); + panel4.add(label5, + new GridConstraints(6, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label6 = new JLabel(); + label6.setHorizontalAlignment(2); + label6.setName("alphaSensitivityLabel"); + this.$$$loadLabelText$$$(label6, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.sensitivity")); + label6.setVisible(true); + panel4.add(label6, + new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner1 = new JSpinner(); + spinner1.setName("alphaSensitivitySpinner"); + spinner1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.sensitivity.tooltip")); + spinner1.setVisible(true); + panel4.add(spinner1, + new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox2 = new JCheckBox(); + checkBox2.setActionCommand("Hide Preview"); + checkBox2.setName("inverseVblCheckbox"); + this.$$$loadButtonText$$$(checkBox2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.invert")); + checkBox2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.invert.tooltip")); + checkBox2.setVisible(true); + panel4.add(checkBox2, new GridConstraints(4, 0, 1, 3, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JToggleButton toggleButton5 = new JToggleButton(); + toggleButton5.setName("vblColorPickerToggleButton"); + toggleButton5.setText(""); + toggleButton5.setToolTipText( + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.toggle")); + toggleButton5.setVisible(true); + panel4.add(toggleButton5, + new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_SOUTHEAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label7 = new JLabel(); + label7.setHorizontalAlignment(2); + label7.setName("jtsDistanceToleranceLabel"); + this.$$$loadLabelText$$$(label7, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.method")); + label7.setVisible(true); + panel4.add(label7, + new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox1 = new JComboBox(); + comboBox1.setActionCommand("comboBoxChanged"); + comboBox1.setName("jtsMethodComboBox"); + comboBox1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.drop.vbl.optimize.tooltip")); + comboBox1.setVisible(true); + panel4.add(comboBox1, + new GridConstraints(7, 1, 1, 2, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner2 = new JSpinner(); + spinner2.setName("jtsDistanceToleranceSpinner"); + spinner2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.spinner.tolerance.tooltip")); + spinner2.setVisible(true); + panel4.add(spinner2, + new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label8 = new JLabel(); + Font label8Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, label8.getFont()); + if (label8Font != null) + label8.setFont(label8Font); + label8.setName("visibilityLabel"); + this.$$$loadLabelText$$$(label8, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.visiblity")); + label8.setVisible(true); + panel4.add(label8, + new GridConstraints(9, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox3 = new JCheckBox(); + checkBox3.setActionCommand("Always Show\t"); + checkBox3.setHorizontalAlignment(0); + checkBox3.setName("copyOrMoveCheckbox"); + checkBox3.setSelected(true); + this.$$$loadButtonText$$$(checkBox3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.option.vbl.erase")); + checkBox3.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.option.vbl.erase.tooltip")); + checkBox3.setVisible(true); + panel4.add(checkBox3, + new GridConstraints(8, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox4 = new JCheckBox(); + checkBox4.setActionCommand("Always Show\t"); + checkBox4.setHorizontalAlignment(0); + checkBox4.setName("alwaysVisibleButton"); + checkBox4.setSelected(true); + this.$$$loadButtonText$$$(checkBox4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.over")); + checkBox4.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.over.tooltip")); + checkBox4.setVisible(true); + panel4.add(checkBox4, + new GridConstraints(10, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label9 = new JLabel(); + label9.setHorizontalAlignment(2); + this.$$$loadLabelText$$$(label9, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.vbl.tolerance")); + label9.setVisible(true); + panel4.add(label9, + new GridConstraints(11, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner3 = new JSpinner(); + spinner3.setName("visibilityToleranceSpinner"); + spinner3.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.vbl.explanation.tooltip")); + spinner3.setVisible(true); + panel4.add(spinner3, + new GridConstraints(11, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button1 = new JButton(); + button1.setActionCommand("Generate VBL\t"); + button1.setName("autoGenerateVblButton"); + this.$$$loadButtonText$$$(button1, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl")); + button1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl.tooltip")); + button1.setVisible(true); + panel4.add(button1, new GridConstraints(12, 0, 1, 3, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button2 = new JButton(); + button2.setActionCommand("Clear VBL"); + button2.setName("clearVblButton"); + this.$$$loadButtonText$$$(button2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl.clear")); + button2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl.clear.tooltip")); + button2.setVisible(true); + panel4.add(button2, new GridConstraints(13, 0, 1, 3, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button3 = new JButton(); + button3.setActionCommand("Clear VBL"); + button3.setName("transferVblToMap"); + this.$$$loadButtonText$$$(button3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl.tomap")); + button3.setVisible(true); + panel4.add(button3, new GridConstraints(14, 0, 1, 3, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button4 = new JButton(); + button4.setActionCommand("Clear VBL"); + button4.setName("transferVblFromMap"); + this.$$$loadButtonText$$$(button4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.vbl.frommap")); + button4.setVisible(true); + panel4.add(button4, new GridConstraints(15, 0, 1, 3, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel7 = new JPanel(); + panel7.setLayout(new GridLayoutManager(1, 1, new Insets(4, 4, 4, 4), -1, -1)); + panel7.setVisible(true); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.state"), panel7); + final JScrollPane scrollPane1 = new JScrollPane(); + scrollPane1.setHorizontalScrollBarPolicy(31); + panel7.add(scrollPane1, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel8 = new JPanel(); + panel8.setLayout(new BorderLayout(0, 0)); + panel8.setName("statesPanel"); + scrollPane1.setViewportView(panel8); + final JPanel panel9 = new JPanel(); + panel9.setLayout(new GridLayoutManager(2, 2, new Insets(4, 4, 4, 4), -1, -1)); + panel9.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.speech"), panel9); + final JScrollPane scrollPane2 = new JScrollPane(); + scrollPane2.setHorizontalScrollBarPolicy(31); + panel9.add(scrollPane2, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTable table1 = new JTable(); + table1.setName("speechTable"); + scrollPane2.setViewportView(table1); + final JButton button5 = new JButton(); + button5.setActionCommand("Clear All"); + button5.setName("speechClearAllButton"); + this.$$$loadButtonText$$$(button5, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.clearall")); + panel9.add(button5, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer3 = new Spacer(); + panel9.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel10 = new JPanel(); + panel10.setLayout(new GridLayoutManager(2, 2, new Insets(4, 4, 4, 4), -1, -1)); + panel10.setName("ownershipPanel"); + panel10.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.ownership"), panel10); + final JLabel label10 = new JLabel(); + label10.setName("ownershipList"); + label10.setText(""); + panel10.add(label10, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox5 = new JCheckBox(); + checkBox5.setActionCommand("All Players"); + checkBox5.setName("@ownedByAll"); + this.$$$loadButtonText$$$(checkBox5, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.allplayers")); + panel10.add(checkBox5, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer4 = new Spacer(); + panel10.add(spacer4, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel11 = new JPanel(); + panel11.setLayout(new GridLayoutManager(7, 10, new Insets(4, 4, 4, 4), -1, -1)); + panel11.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.config"), panel11); + final JLabel label11 = new JLabel(); + this.$$$loadLabelText$$$(label11, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.shape")); + panel11.add(label11, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label12 = new JLabel(); + this.$$$loadLabelText$$$(label12, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.snaptogrid")); + panel11.add(label12, + new GridConstraints(0, 3, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox6 = new JCheckBox(); + checkBox6.setName("@visible"); + checkBox6.setText(""); + panel11.add(checkBox6, + new GridConstraints(0, 7, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label13 = new JLabel(); + this.$$$loadLabelText$$$(label13, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.size")); + panel11.add(label13, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox2 = new JComboBox(); + comboBox2.setActionCommand("comboBoxChanged"); + comboBox2.setName("size"); + panel11.add(comboBox2, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox3 = new JComboBox(); + comboBox3.setActionCommand("comboBoxChanged"); + comboBox3.setName("shape"); + panel11.add(comboBox3, new GridConstraints(0, 1, 1, 2, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label14 = new JLabel(); + label14.setName("visibleOnlyToOwnerLabel"); + this.$$$loadLabelText$$$(label14, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.visible.owner")); + panel11.add(label14, + new GridConstraints(1, 3, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label15 = new JLabel(); + label15.setName("visibleLabel"); + this.$$$loadLabelText$$$(label15, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.visible")); + panel11.add(label15, + new GridConstraints(0, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label16 = new JLabel(); + label16.setName("terrainModifierLabel"); + this.$$$loadLabelText$$$(label16, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.terrain.mod")); + label16.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.terrain.mod.tooltip")); + panel11.add(label16, + new GridConstraints(1, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox4 = new JComboBox(); + comboBox4.setActionCommand("comboBoxChanged"); + final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel(); + defaultComboBoxModel1.addElement("Token.TerrainModifierOperation.MULTIPLY"); + comboBox4.setModel(defaultComboBoxModel1); + comboBox4.setName("terrainModifierOperation"); + comboBox4.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.combo.terrain.mod")); + panel11.add(comboBox4, + new GridConstraints(1, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField1 = new JTextField(); + textField1.setColumns(4); + textField1.setName("terrainModifier"); + textField1.setText(""); + textField1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.terrain.mod.tooltip")); + panel11.add(textField1, new GridConstraints(1, 8, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label17 = new JLabel(); + this.$$$loadLabelText$$$(label17, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.properties")); + panel11.add(label17, + new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox5 = new JComboBox(); + comboBox5.setActionCommand("comboBoxChanged"); + comboBox5.setName("propertyTypeCombo"); + panel11.add(comboBox5, new GridConstraints(2, 1, 1, 2, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label18 = new JLabel(); + label18.setName("tokenOpacityLabel"); + this.$$$loadLabelText$$$(label18, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.opacity")); + label18.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.opacity.tooltip")); + panel11.add(label18, + new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label19 = new JLabel(); + this.$$$loadLabelText$$$(label19, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.sight.has")); + panel11.add(label19, + new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox7 = new JCheckBox(); + checkBox7.setName("@hasSight"); + checkBox7.setText(""); + panel11.add(checkBox7, + new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel12 = new JPanel(); + panel12.setLayout(new GridLayoutManager(2, 5, new Insets(0, 0, 0, 0), -1, -1)); + panel11.add(panel12, + new GridConstraints(6, 0, 1, 9, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel13 = new JPanel(); + panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel13.setName("tokenLayoutPanel"); + panel12.add(panel13, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + panel13.setBorder( + BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.layout"), TitledBorder.DEFAULT_JUSTIFICATION, + TitledBorder.DEFAULT_POSITION, + this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel13.getFont()), new Color(-13538620))); + final JLabel label20 = new JLabel(); + label20.setName("tokenLayout"); + this.$$$loadLabelText$$$(label20, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.layout")); + panel13.add(label20, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel14 = new JPanel(); + panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel14.setName("portraitPanel"); + panel12.add(panel14, + new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + panel14.setBorder( + BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.portrait"), TitledBorder.DEFAULT_JUSTIFICATION, + TitledBorder.DEFAULT_POSITION, + this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel14.getFont()), new Color(-13538620))); + final JLabel label21 = new JLabel(); + label21.setName("portrait"); + this.$$$loadLabelText$$$(label21, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.portrait")); + panel14.add(label21, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel15 = new JPanel(); + panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel15.setName("charsheetPanel"); + panel12.add(panel15, + new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + panel15.setBorder( + BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-16777216)), + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.handout"), TitledBorder.DEFAULT_JUSTIFICATION, + TitledBorder.DEFAULT_POSITION, + this.$$$getFont$$$("Dialog", Font.BOLD, 12, panel15.getFont()), new Color(-13538620))); + final JLabel label22 = new JLabel(); + label22.setName("charsheet"); + this.$$$loadLabelText$$$(label22, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.border.title.charsheet")); + panel15.add(label22, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer5 = new Spacer(); + panel12.add(spacer5, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer6 = new Spacer(); + panel12.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer7 = new Spacer(); + panel12.add(spacer7, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JComboBox comboBox6 = new JComboBox(); + comboBox6.setActionCommand("comboBoxChanged"); + comboBox6.setName("sightTypeCombo"); + panel11.add(comboBox6, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox7 = new JComboBox(); + comboBox7.setActionCommand("comboBoxChanged"); + comboBox7.setName("imageTableCombo"); + panel11.add(comboBox7, new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox8 = new JCheckBox(); + checkBox8.setName("@hasImageTable"); + checkBox8.setText(""); + panel11.add(checkBox8, + new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label23 = new JLabel(); + this.$$$loadLabelText$$$(label23, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.image")); + panel11.add(label23, + new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox9 = new JCheckBox(); + checkBox9.setName("@visibleOnlyToOwner"); + checkBox9.setText(""); + panel11.add(checkBox9, + new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox10 = new JCheckBox(); + checkBox10.setName("@snapToGrid"); + checkBox10.setText(""); + panel11.add(checkBox10, + new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label24 = new JLabel(); + label24.setName("tokenOpacityValueLabel"); + this.$$$loadLabelText$$$(label24, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.opacity.100")); + panel11.add(label24, + new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label25 = new JLabel(); + label25.setName("ignoreTerrainModifierLabel"); + this.$$$loadLabelText$$$(label25, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.terrain.ignore")); + label25.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.terrain.ignore.tooltip")); + panel11.add(label25, + new GridConstraints(2, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JList list1 = new JList(); + list1.setName("terrainModifiersIgnored"); + list1.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.terrain.ignore.tooltip")); + list1.setVisibleRowCount(0); + panel11.add(list1, + new GridConstraints(2, 7, 3, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer8 = new Spacer(); + panel11.add(spacer8, new GridConstraints(0, 9, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, + null, 0, false)); + final JSlider slider1 = new JSlider(); + slider1.setMajorTickSpacing(10); + slider1.setMinimum(0); + slider1.setMinorTickSpacing(5); + slider1.setName("tokenOpacitySlider"); + slider1.setOrientation(1); + slider1.setPaintTicks(true); + slider1.setSnapToTicks(true); + slider1.setValue(100); + slider1.setValueIsAdjusting(true); + panel11.add(slider1, + new GridConstraints(2, 4, 4, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + new Dimension(-1, 100), 0, false)); + final Spacer spacer9 = new Spacer(); + panel11.add(spacer9, new GridConstraints(5, 6, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel16 = new JPanel(); + panel16.setLayout(new GridLayoutManager(2, 4, new Insets(4, 4, 4, 4), -1, -1)); + panel16.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.libToken"), panel16); + final JLabel label26 = new JLabel(); + this.$$$loadLabelText$$$(label26, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "Label.allowURIAccess")); + panel16.add(label26, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label27 = new JLabel(); + label27.setName("Label.LibURIError"); + label27.setText(""); + panel16.add(label27, + new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer10 = new Spacer(); + panel16.add(spacer10, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JCheckBox checkBox11 = new JCheckBox(); + checkBox11.setName("@allowURIAccess"); + checkBox11.setText(""); + panel16.add(checkBox11, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, 1, + 1, null, new Dimension(10, 10), null, 0, false)); + final Spacer spacer11 = new Spacer(); + panel16.add(spacer11, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final JPanel panel17 = new JPanel(); + panel17.setLayout(new GridLayoutManager(5, 4, new Insets(4, 4, 4, 4), -1, -1)); + panel17.setVisible(false); + tabPanel.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.hero"), panel17); + final JTabbedPane tabbedPane1 = new JTabbedPane(); + tabbedPane1.setName("StatblockTabPane"); + tabbedPane1.setTabPlacement(1); + tabbedPane1.setToolTipText("View the statblocks from Hero Lab"); + panel17.add(tabbedPane1, + new GridConstraints(4, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel18 = new JPanel(); + panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.hero.html"), panel18); + final JScrollPane scrollPane3 = new JScrollPane(); + panel18.add(scrollPane3, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JEditorPane editorPane1 = new JEditorPane(); + editorPane1.setContentType("text/plain"); + editorPane1.setEditable(false); + editorPane1.setName("HTMLstatblockTextArea"); + editorPane1.setText(""); + scrollPane3.setViewportView(editorPane1); + final JPanel panel19 = new JPanel(); + panel19.setLayout(new GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), -1, -1)); + panel19.setName("xmlStatblockPanel"); + panel19.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.hero.xml"), panel19); + final JTextField textField2 = new JTextField(); + textField2.setName("xmlStatblockSearchTextField"); + textField2.setText(""); + textField2.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.statBlockSearch.tooltip")); + panel19.add(textField2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button6 = new JButton(); + button6.setActionCommand("Find"); + button6.setName("xmlStatblockSearchButton"); + this.$$$loadButtonText$$$(button6, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.action.hero.statBlockRTextScroll")); + button6.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.hero.statBlockSearch.tooltip")); + panel19.add(button6, + new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label28 = new JLabel(); + label28.setName("xmlStatblockRTextScrollPane"); + label28.setText(""); + panel19.add(label28, + new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label29 = new JLabel(); + label29.setName("expressionLabel"); + this.$$$loadLabelText$$$(label29, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.statBlockSearch")); + panel19.add(label29, + new GridConstraints(1, 0, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer12 = new Spacer(); + panel19.add(spacer12, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer13 = new Spacer(); + panel19.add(spacer13, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel20 = new JPanel(); + panel20.setLayout(new GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), -1, -1)); + panel20.setName("textStatblockPanel"); + panel20.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.hero.text"), panel20); + final JButton button7 = new JButton(); + button7.setActionCommand("Find"); + button7.setName("textStatblockSearchButton"); + this.$$$loadButtonText$$$(button7, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.action.hero.statBlockRTextScroll")); + button7.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.hero.statBlockSearch.tooltip")); + panel20.add(button7, + new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField3 = new JTextField(); + textField3.setName("textStatblockSearchTextField"); + textField3.setText(""); + textField3.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.statBlockSearch.tooltip")); + panel20.add(textField3, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label30 = new JLabel(); + label30.setName("textStatblockRTextScrollPane"); + label30.setText(""); + panel20.add(label30, + new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label31 = new JLabel(); + label31.setName("expressionLabel"); + this.$$$loadLabelText$$$(label31, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.statBlockSearch")); + panel20.add(label31, + new GridConstraints(1, 0, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer14 = new Spacer(); + panel20.add(spacer14, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer15 = new Spacer(); + panel20.add(spacer15, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel21 = new JPanel(); + panel21.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1)); + panel21.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.tab.hero.images"), panel21); + final JScrollPane scrollPane4 = new JScrollPane(); + panel21.add(scrollPane4, + new GridConstraints(0, 1, 4, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JList list2 = new JList(); + list2.setName("heroLabImagesList"); + scrollPane4.setViewportView(list2); + final JButton button8 = new JButton(); + button8.setActionCommand("Set as Token Portrait"); + button8.setName("setAsPortraitButton"); + this.$$$loadButtonText$$$(button8, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.hero.setAsTokenPortrait")); + panel21.add(button8, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button9 = new JButton(); + button9.setActionCommand("Set as Token Image"); + button9.setName("setAsImageButton"); + this.$$$loadButtonText$$$(button9, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.hero.setAsTokenImage")); + panel21.add(button9, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button10 = new JButton(); + button10.setActionCommand("Set as Token Handout"); + button10.setName("setAsHandoutButton"); + this.$$$loadButtonText$$$(button10, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.hero.setAsTokenHandout")); + panel21.add(button10, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer16 = new Spacer(); + panel21.add(spacer16, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final Spacer spacer17 = new Spacer(); + panel21.add(spacer17, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final JLabel label32 = new JLabel(); + label32.setName("summaryLabel"); + this.$$$loadLabelText$$$(label32, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.summary")); + panel17.add(label32, + new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label33 = new JLabel(); + label33.setName("portfolioLabel"); + this.$$$loadLabelText$$$(label33, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.portfolio")); + panel17.add(label33, + new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label34 = new JLabel(); + this.$$$loadLabelText$$$(label34, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.last")); + panel17.add(label34, + new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label35 = new JLabel(); + label35.setName("summaryText"); + label35.setText(""); + panel17.add(label35, + new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label36 = new JLabel(); + label36.setName("lastModified"); + label36.setText(""); + panel17.add(label36, + new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label37 = new JLabel(); + label37.setAutoscrolls(true); + label37.setName("portfolioLocation"); + label37.setText(""); + panel17.add(label37, + new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button11 = new JButton(); + button11.setAlignmentY(0.0f); + button11.setIconTextGap(2); + button11.setName("refreshDataButton"); + button11.setText(""); + button11.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.button.hero.refresh.tooltip.off")); + panel17.add(button11, + new GridConstraints(0, 2, 3, 1, GridConstraints.ANCHOR_NORTHEAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox12 = new JCheckBox(); + checkBox12.setActionCommand("Is Ally?"); + checkBox12.setEnabled(false); + checkBox12.setName("isAllyCheckBox"); + this.$$$loadButtonText$$$(checkBox12, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.hero.isAlly")); + panel17.add(checkBox12, + new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer18 = new Spacer(); + panel17.add(spacer18, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer19 = new Spacer(); + panel17.add(spacer19, new GridConstraints(4, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + headPanel = new JPanel(); + headPanel.setLayout(new GridLayoutManager(4, 4, new Insets(0, 0, 0, 0), -1, -1)); + headPanel.setName(""); + mainPanel.add(headPanel, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label38 = new JLabel(); + this.$$$loadLabelText$$$(label38, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); + headPanel.add(label38, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField4 = new JTextField(); + textField4.setColumns(30); + Font textField4Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, textField4.getFont()); + if (textField4Font != null) + textField4.setFont(textField4Font); + textField4.setName("@name"); + textField4.setText(""); + headPanel.add(textField4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label39 = new JLabel(); + label39.setName("tokenGMNameLabel"); + this.$$$loadLabelText$$$(label39, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.gmname")); + headPanel.add(label39, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField5 = new JTextField(); + textField5.setColumns(30); + Font textField5Font = this.$$$getFont$$$("SansSerif", Font.BOLD, -1, textField5.getFont()); + if (textField5Font != null) + textField5.setFont(textField5Font); + textField5.setName("@GMName"); + textField5.setText(""); + headPanel.add(textField5, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox8 = new JComboBox(); + comboBox8.setActionCommand("comboBoxChanged"); + comboBox8.setName("type"); + headPanel.add(comboBox8, + new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label40 = new JLabel(); + this.$$$loadLabelText$$$(label40, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "EditTokenDialog.label.label")); + headPanel.add(label40, + new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField6 = new JTextField(); + textField6.setName("@label"); + textField6.setText(""); + headPanel.add(textField6, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label41 = new JLabel(); + this.$$$loadLabelText$$$(label41, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.speechName")); + headPanel.add(label41, + new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField7 = new JTextField(); + textField7.setName("@speechName"); + textField7.setText(""); + headPanel.add(textField7, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer20 = new Spacer(); + headPanel.add(spacer20, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, + null, 0, false)); + buttonPanel = new JPanel(); + buttonPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1)); + mainPanel.add(buttonPanel, + new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_SOUTHEAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button12 = new JButton(); + button12.setActionCommand("Cancel"); + button12.setName("cancelButton"); + this.$$$loadButtonText$$$(button12, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.cancel")); + buttonPanel.add(button12, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button13 = new JButton(); + button13.setActionCommand("OK"); + button13.setName("okButton"); + this.$$$loadButtonText$$$(button13, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.ok")); + buttonPanel.add(button13, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer21 = new Spacer(); + mainPanel.add(spacer21, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, + null, 0, false)); + } - /** - * @noinspection ALL - */ - private Font $$$getFont$$$(String fontName, int style, int size, Font currentFont) { - if (currentFont == null) return null; - String resultName; - if (fontName == null) { - resultName = currentFont.getName(); - } else { - Font testFont = new Font(fontName, Font.PLAIN, 10); - if (testFont.canDisplay('a') && testFont.canDisplay('1')) { - resultName = fontName; - } else { - resultName = currentFont.getName(); - } - } - Font font = new Font(resultName, style >= 0 ? style : currentFont.getStyle(), size >= 0 ? size : currentFont.getSize()); - boolean isMac = System.getProperty("os.name", "").toLowerCase(Locale.ENGLISH).startsWith("mac"); - Font fontWithFallback = isMac ? new Font(font.getFamily(), font.getStyle(), font.getSize()) : new StyleContext().getFont(font.getFamily(), font.getStyle(), font.getSize()); - return fontWithFallback instanceof FontUIResource ? fontWithFallback : new FontUIResource(fontWithFallback); + /** + * @noinspection ALL + */ + private Font $$$getFont$$$(String fontName, int style, int size, Font currentFont) { + if (currentFont == null) + return null; + String resultName; + if (fontName == null) { + resultName = currentFont.getName(); + } else { + Font testFont = new Font(fontName, Font.PLAIN, 10); + if (testFont.canDisplay('a') && testFont.canDisplay('1')) { + resultName = fontName; + } else { + resultName = currentFont.getName(); + } } + Font font = new Font(resultName, style >= 0 ? style : currentFont.getStyle(), + size >= 0 ? size : currentFont.getSize()); + boolean isMac = System.getProperty("os.name", "").toLowerCase(Locale.ENGLISH).startsWith("mac"); + Font fontWithFallback = isMac ? new Font(font.getFamily(), font.getStyle(), font.getSize()) + : new StyleContext().getFont(font.getFamily(), font.getStyle(), font.getSize()); + return fontWithFallback instanceof FontUIResource ? fontWithFallback + : new FontUIResource(fontWithFallback); + } - private static Method $$$cachedGetBundleMethod$$$ = null; + private static Method $$$cachedGetBundleMethod$$$ = null; - private String $$$getMessageFromBundle$$$(String path, String key) { - ResourceBundle bundle; - try { - Class thisClass = this.getClass(); - if ($$$cachedGetBundleMethod$$$ == null) { - Class dynamicBundleClass = thisClass.getClassLoader().loadClass("com.intellij.DynamicBundle"); - $$$cachedGetBundleMethod$$$ = dynamicBundleClass.getMethod("getBundle", String.class, Class.class); - } - bundle = (ResourceBundle) $$$cachedGetBundleMethod$$$.invoke(null, path, thisClass); - } catch (Exception e) { - bundle = ResourceBundle.getBundle(path); - } - return bundle.getString(key); + private String $$$getMessageFromBundle$$$(String path, String key) { + ResourceBundle bundle; + try { + Class thisClass = this.getClass(); + if ($$$cachedGetBundleMethod$$$ == null) { + Class dynamicBundleClass = thisClass.getClassLoader() + .loadClass("com.intellij.DynamicBundle"); + $$$cachedGetBundleMethod$$$ = dynamicBundleClass.getMethod("getBundle", String.class, + Class.class); + } + bundle = (ResourceBundle) $$$cachedGetBundleMethod$$$.invoke(null, path, thisClass); + } catch (Exception e) { + bundle = ResourceBundle.getBundle(path); } + return bundle.getString(key); + } - /** - * @noinspection ALL - */ - private void $$$loadLabelText$$$(JLabel component, String text) { - StringBuffer result = new StringBuffer(); - boolean haveMnemonic = false; - char mnemonic = '\0'; - int mnemonicIndex = -1; - for (int i = 0; i < text.length(); i++) { - if (text.charAt(i) == '&') { - i++; - if (i == text.length()) break; - if (!haveMnemonic && text.charAt(i) != '&') { - haveMnemonic = true; - mnemonic = text.charAt(i); - mnemonicIndex = result.length(); - } - } - result.append(text.charAt(i)); - } - component.setText(result.toString()); - if (haveMnemonic) { - component.setDisplayedMnemonic(mnemonic); - component.setDisplayedMnemonicIndex(mnemonicIndex); + /** + * @noinspection ALL + */ + private void $$$loadLabelText$$$(JLabel component, String text) { + StringBuffer result = new StringBuffer(); + boolean haveMnemonic = false; + char mnemonic = '\0'; + int mnemonicIndex = -1; + for (int i = 0; i < text.length(); i++) { + if (text.charAt(i) == '&') { + i++; + if (i == text.length()) + break; + if (!haveMnemonic && text.charAt(i) != '&') { + haveMnemonic = true; + mnemonic = text.charAt(i); + mnemonicIndex = result.length(); } + } + result.append(text.charAt(i)); + } + component.setText(result.toString()); + if (haveMnemonic) { + component.setDisplayedMnemonic(mnemonic); + component.setDisplayedMnemonicIndex(mnemonicIndex); } + } - /** - * @noinspection ALL - */ - private void $$$loadButtonText$$$(AbstractButton component, String text) { - StringBuffer result = new StringBuffer(); - boolean haveMnemonic = false; - char mnemonic = '\0'; - int mnemonicIndex = -1; - for (int i = 0; i < text.length(); i++) { - if (text.charAt(i) == '&') { - i++; - if (i == text.length()) break; - if (!haveMnemonic && text.charAt(i) != '&') { - haveMnemonic = true; - mnemonic = text.charAt(i); - mnemonicIndex = result.length(); - } - } - result.append(text.charAt(i)); - } - component.setText(result.toString()); - if (haveMnemonic) { - component.setMnemonic(mnemonic); - component.setDisplayedMnemonicIndex(mnemonicIndex); + /** + * @noinspection ALL + */ + private void $$$loadButtonText$$$(AbstractButton component, String text) { + StringBuffer result = new StringBuffer(); + boolean haveMnemonic = false; + char mnemonic = '\0'; + int mnemonicIndex = -1; + for (int i = 0; i < text.length(); i++) { + if (text.charAt(i) == '&') { + i++; + if (i == text.length()) + break; + if (!haveMnemonic && text.charAt(i) != '&') { + haveMnemonic = true; + mnemonic = text.charAt(i); + mnemonicIndex = result.length(); } + } + result.append(text.charAt(i)); } - - /** - * @noinspection ALL - */ - public JComponent $$$getRootComponent$$$() { - return mainPanel; + component.setText(result.toString()); + if (haveMnemonic) { + component.setMnemonic(mnemonic); + component.setDisplayedMnemonicIndex(mnemonicIndex); } + } + + /** + * @noinspection ALL + */ + public JComponent $$$getRootComponent$$$() { + return mainPanel; + } - /* spotless:on */ + /* spotless:on */ public TokenPropertiesDialog() {} private void createUIComponents() { From 702bac01cd6639707d1bedc598122ab827875a07 Mon Sep 17 00:00:00 2001 From: Craig Wisniewski Date: Tue, 30 May 2023 10:23:48 +0930 Subject: [PATCH 8/8] Fix for not being able to add bars --- .../CampaignPropertiesDialogView.form | 6 +- .../CampaignPropertiesDialogView.java | 1634 +++++++++++------ .../TokenBarController.java | 100 +- .../TokenPropertiesManagementPanelView.java | 333 ++-- 4 files changed, 1330 insertions(+), 743 deletions(-) diff --git a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.form b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.form index 511ec13c1a..1ff21921e7 100644 --- a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.form +++ b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.form @@ -3,7 +3,7 @@ - + @@ -953,7 +953,9 @@ - + + + diff --git a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.java b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.java index b46f8fe82b..d32f575ba6 100644 --- a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.java +++ b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/CampaignPropertiesDialogView.java @@ -25,594 +25,1092 @@ import net.rptools.maptool.client.swing.ColorWell; public class CampaignPropertiesDialogView { + private JPanel mainPanel; /* spotless:off */ - { + { // GUI initializer generated by IntelliJ IDEA GUI Designer // >>> IMPORTANT!! <<< // DO NOT EDIT OR ADD ANY CODE HERE! - $$$setupUI$$$(); - } + $$$setupUI$$$(); + } - /** - * Method generated by IntelliJ IDEA GUI Designer - * >>> IMPORTANT!! <<< - * DO NOT edit this method OR call it in your code! - * - * @noinspection ALL - */ - private void $$$setupUI$$$() { - mainPanel = new JPanel(); - mainPanel.setLayout(new GridLayoutManager(2, 1, new Insets(5, 5, 5, 5), -1, -1)); - mainPanel.setName("mainForm"); - final JTabbedPane tabbedPane1 = new JTabbedPane(); - mainPanel.add(tabbedPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel1 = new JPanel(); - panel1.setLayout(new GridLayoutManager(1, 1, new Insets(5, 5, 5, 5), -1, -1)); - panel1.setName("propertiesPanel"); - panel1.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.tab.token"), panel1); - final JLabel label1 = new JLabel(); - label1.setName("tokenPropertiesPanel"); - label1.setText("Token Properties Panel"); - panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel2 = new JPanel(); - panel2.setLayout(new GridLayoutManager(4, 4, new Insets(5, 5, 5, 5), -1, -1)); - panel2.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.tab.repo"), panel2); - final JTextField textField1 = new JTextField(); - textField1.setName("newServer"); - textField1.setText(""); - panel2.add(textField1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button1 = new JButton(); - button1.setActionCommand("Add"); - button1.setName("addRepoButton"); - this.$$$loadButtonText$$$(button1, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); - panel2.add(button1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JScrollPane scrollPane1 = new JScrollPane(); - panel2.add(scrollPane1, new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JList list1 = new JList(); - list1.setName("repoList"); - scrollPane1.setViewportView(list1); - final JPanel panel3 = new JPanel(); - panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel2.add(panel3, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button2 = new JButton(); - button2.setActionCommand("JButton"); - button2.setName("deleteRepoButton"); - this.$$$loadButtonText$$$(button2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); - panel2.add(button2, new GridConstraints(3, 3, 1, 1, GridConstraints.ANCHOR_NORTHEAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer1 = new Spacer(); - panel2.add(spacer1, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer2 = new Spacer(); - panel2.add(spacer2, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final Spacer spacer3 = new Spacer(); - panel2.add(spacer3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JPanel panel4 = new JPanel(); - panel4.setLayout(new GridLayoutManager(2, 1, new Insets(5, 5, 5, 5), -1, -1)); - panel4.setPreferredSize(new Dimension(-1, -1)); - panel4.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.tab.sight"), panel4); - final JScrollPane scrollPane2 = new JScrollPane(); - panel4.add(scrollPane2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(600, 300), null, 0, false)); - final JEditorPane editorPane1 = new JEditorPane(); - editorPane1.setAutoscrolls(true); - editorPane1.setContentType("text/plain"); - editorPane1.setName("sightPanel"); - editorPane1.setText(""); - editorPane1.setVisible(true); - scrollPane2.setViewportView(editorPane1); - final JScrollPane scrollPane3 = new JScrollPane(); - scrollPane3.setHorizontalScrollBarPolicy(31); - scrollPane3.setVerticalScrollBarPolicy(22); - scrollPane3.setVisible(true); - panel4.add(scrollPane3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(600, 300), null, 0, false)); - final JEditorPane editorPane2 = new JEditorPane(); - editorPane2.setAutoscrolls(false); - editorPane2.setContentType("text/html"); - editorPane2.setEditable(false); - editorPane2.setName("sightHelp"); - editorPane2.setSelectionEnd(1); - editorPane2.setSelectionStart(1); - editorPane2.setText("\n \n \n \n \n \n\n"); - editorPane2.setVisible(true); - scrollPane3.setViewportView(editorPane2); - final JPanel panel5 = new JPanel(); - panel5.setLayout(new GridLayoutManager(2, 1, new Insets(5, 5, 5, 5), -1, -1)); - panel5.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.tab.light"), panel5); - final JScrollPane scrollPane4 = new JScrollPane(); - scrollPane4.setVisible(true); - panel5.add(scrollPane4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(600, 300), null, 0, false)); - final JEditorPane editorPane3 = new JEditorPane(); - editorPane3.setAutoscrolls(false); - editorPane3.setContentType("text/plain"); - editorPane3.setName("lightPanel"); - editorPane3.setText(""); - scrollPane4.setViewportView(editorPane3); - final JScrollPane scrollPane5 = new JScrollPane(); - scrollPane5.setHorizontalScrollBarPolicy(31); - scrollPane5.setVerticalScrollBarPolicy(22); - scrollPane5.setVisible(true); - panel5.add(scrollPane5, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(600, 300), null, 0, false)); - final JEditorPane editorPane4 = new JEditorPane(); - editorPane4.setAutoscrolls(false); - editorPane4.setContentType("text/html"); - editorPane4.setEditable(false); - editorPane4.setName("lightHelp"); - editorPane4.setSelectionEnd(1); - editorPane4.setSelectionStart(1); - editorPane4.setText("\n \n \n \n \n \n\n"); - scrollPane5.setViewportView(editorPane4); - final JPanel panel6 = new JPanel(); - panel6.setLayout(new GridLayoutManager(7, 11, new Insets(5, 5, 5, 5), -1, -1)); - panel6.setName("tokenStatesPanel"); - panel6.setVisible(false); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.tab.states"), panel6); - final JComboBox comboBox1 = new JComboBox(); - comboBox1.setActionCommand("comboBoxChanged"); - final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel(); - comboBox1.setModel(defaultComboBoxModel1); - comboBox1.setName("tokenStatesType"); - panel6.add(comboBox1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label2 = new JLabel(); - label2.setName("tokenStatesColorLabel"); - this.$$$loadLabelText$$$(label2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "GridControlPanel.color")); - panel6.add(label2, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final ColorWell colorWell1 = new ColorWell(); - Font colorWell1Font = UIManager.getFont("Panel.font"); - if (colorWell1Font != null) colorWell1.setFont(colorWell1Font); - colorWell1.setName("tokenStatesColor"); - panel6.add(colorWell1, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label3 = new JLabel(); - label3.setName("tokenStatesWidthLabel"); - this.$$$loadLabelText$$$(label3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "dialog.resizeStamp.label.width")); - panel6.add(label3, new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner1 = new JSpinner(); - spinner1.setName("tokenStatesWidth"); - panel6.add(spinner1, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label4 = new JLabel(); - this.$$$loadLabelText$$$(label4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "dialog.NewToken.type")); - panel6.add(label4, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label5 = new JLabel(); - label5.setName("tokenStatesImageFileLabel"); - this.$$$loadLabelText$$$(label5, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.image")); - panel6.add(label5, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField2 = new JTextField(); - textField2.setName("tokenStatesImageFile"); - textField2.setText(""); - panel6.add(textField2, new GridConstraints(4, 1, 1, 8, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox2 = new JComboBox(); - comboBox2.setActionCommand("comboBoxChanged"); - final DefaultComboBoxModel defaultComboBoxModel2 = new DefaultComboBoxModel(); - comboBox2.setModel(defaultComboBoxModel2); - comboBox2.setName("tokenStatesCorner"); - panel6.add(comboBox2, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner2 = new JSpinner(); - spinner2.setName("tokenStatesFlowGrid"); - panel6.add(spinner2, new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label6 = new JLabel(); - label6.setName("tokenStatesCornerLabel"); - this.$$$loadLabelText$$$(label6, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.corner")); - panel6.add(label6, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label7 = new JLabel(); - label7.setName("tokenStatesFlowGridLabel"); - this.$$$loadLabelText$$$(label7, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "GridControlPanel.size")); - panel6.add(label7, new GridConstraints(2, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label8 = new JLabel(); - this.$$$loadLabelText$$$(label8, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.mouse")); - panel6.add(label8, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox1 = new JCheckBox(); - checkBox1.setName("tokenStatesMouseover"); - checkBox1.setText(""); - panel6.add(checkBox1, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner3 = new JSpinner(); - spinner3.setName("tokenStatesOpacity"); - panel6.add(spinner3, new GridConstraints(1, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button3 = new JButton(); - button3.setActionCommand("Add"); - button3.setName("tokenStatesBrowseImage"); - this.$$$loadButtonText$$$(button3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.browse")); - panel6.add(button3, new GridConstraints(4, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label9 = new JLabel(); - this.$$$loadLabelText$$$(label9, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); - panel6.add(label9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label10 = new JLabel(); - this.$$$loadLabelText$$$(label10, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.opacity")); - panel6.add(label10, new GridConstraints(1, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label11 = new JLabel(); - this.$$$loadLabelText$$$(label11, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.order")); - label11.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.order.tooltip")); - panel6.add(label11, new GridConstraints(2, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner4 = new JSpinner(); - spinner4.setName("tokenStatesIndex"); - panel6.add(spinner4, new GridConstraints(2, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel7 = new JPanel(); - panel7.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1)); - panel6.add(panel7, new GridConstraints(0, 1, 1, 7, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField3 = new JTextField(); - textField3.setName("tokenStatesName"); - textField3.setText(""); - panel7.add(textField3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label12 = new JLabel(); - this.$$$loadLabelText$$$(label12, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.group")); - panel7.add(label12, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField4 = new JTextField(); - textField4.setName("tokenStatesGroup"); - textField4.setText(""); - panel7.add(textField4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer4 = new Spacer(); - panel7.add(spacer4, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer5 = new Spacer(); - panel7.add(spacer5, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JPanel panel8 = new JPanel(); - panel8.setLayout(new GridLayoutManager(9, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel6.add(panel8, new GridConstraints(5, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button4 = new JButton(); - button4.setActionCommand("Add"); - button4.setName("tokenStatesAddState"); - this.$$$loadButtonText$$$(button4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); - panel8.add(button4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button5 = new JButton(); - button5.setActionCommand("deleteState\t"); - button5.setName("tokenStatesDeleteState"); - this.$$$loadButtonText$$$(button5, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); - panel8.add(button5, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button6 = new JButton(); - button6.setActionCommand("Add"); - button6.setName("tokenStatesUpdateState"); - this.$$$loadButtonText$$$(button6, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); - panel8.add(button6, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button7 = new JButton(); - button7.setActionCommand("deleteState\t"); - button7.setName("tokenStatesMoveUp"); - this.$$$loadButtonText$$$(button7, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.up")); - panel8.add(button7, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button8 = new JButton(); - button8.setActionCommand("deleteState\t"); - button8.setName("tokenStatesMoveDown"); - this.$$$loadButtonText$$$(button8, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.down")); - panel8.add(button8, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel9 = new JPanel(); - panel9.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1)); - panel9.setName("1234"); - panel6.add(panel9, new GridConstraints(3, 0, 1, 4, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - panel9.setBorder(BorderFactory.createTitledBorder(null, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.show"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null)); - final JCheckBox checkBox2 = new JCheckBox(); - checkBox2.setActionCommand("GM"); - checkBox2.setName("tokenStatesGM"); - checkBox2.setSelected(true); - this.$$$loadButtonText$$$(checkBox2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "userTerm.GM")); - panel9.add(checkBox2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox3 = new JCheckBox(); - checkBox3.setActionCommand("GM"); - checkBox3.setName("tokenStatesOwner"); - checkBox3.setSelected(true); - this.$$$loadButtonText$$$(checkBox3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaginPropertiesDialog.label.owner")); - panel9.add(checkBox3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox4 = new JCheckBox(); - checkBox4.setActionCommand("GM"); - checkBox4.setName("tokenStatesEverybody"); - checkBox4.setSelected(true); - this.$$$loadButtonText$$$(checkBox4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.else")); - panel9.add(checkBox4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JScrollPane scrollPane6 = new JScrollPane(); - panel6.add(scrollPane6, new GridConstraints(5, 0, 1, 9, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JList list2 = new JList(); - list2.setName("tokenStatesStates"); - list2.setSelectionMode(0); - scrollPane6.setViewportView(list2); - final Spacer spacer6 = new Spacer(); - panel6.add(spacer6, new GridConstraints(6, 0, 1, 8, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer7 = new Spacer(); - panel6.add(spacer7, new GridConstraints(0, 8, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer8 = new Spacer(); - panel6.add(spacer8, new GridConstraints(5, 9, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel10 = new JPanel(); - panel10.setLayout(new GridLayoutManager(8, 11, new Insets(5, 5, 5, 5), -1, -1)); - panel10.setVisible(true); - tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.tab.bars"), panel10); - final JLabel label13 = new JLabel(); - this.$$$loadLabelText$$$(label13, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); - panel10.add(label13, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField5 = new JTextField(); - textField5.setName("tokenBarName"); - textField5.setText(""); - panel10.add(textField5, new GridConstraints(0, 1, 1, 7, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label14 = new JLabel(); - this.$$$loadLabelText$$$(label14, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "dialog.NewToken.type")); - panel10.add(label14, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox3 = new JComboBox(); - comboBox3.setActionCommand("comboBoxChanged"); - final DefaultComboBoxModel defaultComboBoxModel3 = new DefaultComboBoxModel(); - comboBox3.setModel(defaultComboBoxModel3); - comboBox3.setName("tokenBarType"); - panel10.add(comboBox3, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label15 = new JLabel(); - label15.setName("tokenBarColorLabel"); - this.$$$loadLabelText$$$(label15, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.bar")); - panel10.add(label15, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final ColorWell colorWell2 = new ColorWell(); - Font colorWell2Font = UIManager.getFont("Panel.font"); - if (colorWell2Font != null) colorWell2.setFont(colorWell2Font); - colorWell2.setForeground(new Color(-1)); - colorWell2.setName("tokenBarColor"); - panel10.add(colorWell2, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label16 = new JLabel(); - label16.setName("tokenBarThicknessLabel"); - this.$$$loadLabelText$$$(label16, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.thick")); - panel10.add(label16, new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner5 = new JSpinner(); - spinner5.setName("tokenBarThickness"); - panel10.add(spinner5, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label17 = new JLabel(); - this.$$$loadLabelText$$$(label17, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.inc")); - panel10.add(label17, new GridConstraints(1, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner6 = new JSpinner(); - spinner6.setName("tokenBarIncrements"); - panel10.add(spinner6, new GridConstraints(1, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label18 = new JLabel(); - this.$$$loadLabelText$$$(label18, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.side")); - panel10.add(label18, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox4 = new JComboBox(); - comboBox4.setActionCommand("comboBoxChanged"); - final DefaultComboBoxModel defaultComboBoxModel4 = new DefaultComboBoxModel(); - comboBox4.setModel(defaultComboBoxModel4); - comboBox4.setName("tokenBarSide"); - panel10.add(comboBox4, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label19 = new JLabel(); - label19.setName("tokenBarBgColorLabel"); - this.$$$loadLabelText$$$(label19, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.background")); - panel10.add(label19, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final ColorWell colorWell3 = new ColorWell(); - Font colorWell3Font = UIManager.getFont("Panel.font"); - if (colorWell3Font != null) colorWell3.setFont(colorWell3Font); - colorWell3.setName("tokenBarBgColor"); - panel10.add(colorWell3, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label20 = new JLabel(); - this.$$$loadLabelText$$$(label20, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.opacity")); - panel10.add(label20, new GridConstraints(2, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JSpinner spinner7 = new JSpinner(); - spinner7.setName("tokenBarOpacity"); - panel10.add(spinner7, new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label21 = new JLabel(); - this.$$$loadLabelText$$$(label21, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.mouse")); - panel10.add(label21, new GridConstraints(2, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox5 = new JCheckBox(); - checkBox5.setName("tokenBarMouseover"); - checkBox5.setText(""); - panel10.add(checkBox5, new GridConstraints(2, 7, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label22 = new JLabel(); - label22.setName("tokenBarImagesLabel"); - this.$$$loadLabelText$$$(label22, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.images")); - panel10.add(label22, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel11 = new JPanel(); - panel11.setLayout(new GridLayoutManager(6, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel10.add(panel11, new GridConstraints(4, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button9 = new JButton(); - button9.setActionCommand("Add"); - button9.setName("tokenBarAddImage"); - this.$$$loadButtonText$$$(button9, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); - panel11.add(button9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button10 = new JButton(); - button10.setActionCommand("deleteState\t"); - button10.setName("tokenBarDeleteImage"); - this.$$$loadButtonText$$$(button10, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); - panel11.add(button10, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button11 = new JButton(); - button11.setActionCommand("Add"); - button11.setName("tokenBarUpdateImage"); - this.$$$loadButtonText$$$(button11, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); - panel11.add(button11, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button12 = new JButton(); - button12.setActionCommand("deleteState\t"); - button12.setName("tokenBarMoveUpImage"); - this.$$$loadButtonText$$$(button12, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.up")); - panel11.add(button12, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button13 = new JButton(); - button13.setActionCommand("deleteState\t"); - button13.setName("tokenBarMoveDownImage"); - this.$$$loadButtonText$$$(button13, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.down")); - panel11.add(button13, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer9 = new Spacer(); - panel11.add(spacer9, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final Spacer spacer10 = new Spacer(); - panel10.add(spacer10, new GridConstraints(5, 1, 1, 7, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final Spacer spacer11 = new Spacer(); - panel10.add(spacer11, new GridConstraints(0, 8, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JSlider slider1 = new JSlider(); - slider1.setMajorTickSpacing(20); - slider1.setName("tokenBarTest"); - slider1.setOrientation(1); - slider1.setPaintLabels(true); - slider1.setPaintTicks(true); - panel10.add(slider1, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label23 = new JLabel(); - label23.setHorizontalTextPosition(0); - this.$$$loadLabelText$$$(label23, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.preview")); - panel10.add(label23, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel12 = new JPanel(); - panel12.setLayout(new GridLayoutManager(6, 1, new Insets(0, 0, 0, 0), -1, -1)); - panel10.add(panel12, new GridConstraints(6, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button14 = new JButton(); - button14.setActionCommand("Add"); - button14.setName("tokenBarAddBar"); - this.$$$loadButtonText$$$(button14, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); - panel12.add(button14, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button15 = new JButton(); - button15.setActionCommand("deleteState\t"); - button15.setName("tokenBarDeleteBar"); - this.$$$loadButtonText$$$(button15, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); - panel12.add(button15, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button16 = new JButton(); - button16.setActionCommand("Add"); - button16.setName("tokenBarUpdateBar"); - this.$$$loadButtonText$$$(button16, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); - panel12.add(button16, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button17 = new JButton(); - button17.setActionCommand("deleteState\t"); - button17.setName("tokenBarMoveUp"); - this.$$$loadButtonText$$$(button17, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.up")); - panel12.add(button17, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button18 = new JButton(); - button18.setActionCommand("deleteState\t"); - button18.setName("tokenBarMoveDown"); - this.$$$loadButtonText$$$(button18, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.down")); - panel12.add(button18, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer12 = new Spacer(); - panel12.add(spacer12, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JScrollPane scrollPane7 = new JScrollPane(); - panel10.add(scrollPane7, new GridConstraints(4, 1, 1, 8, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JList list3 = new JList(); - list3.setName("tokenBarImages"); - list3.setSelectionMode(0); - scrollPane7.setViewportView(list3); - final JScrollPane scrollPane8 = new JScrollPane(); - panel10.add(scrollPane8, new GridConstraints(6, 1, 1, 8, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JList list4 = new JList(); - list4.setName("tokenBarBars"); - list4.setSelectionMode(0); - scrollPane8.setViewportView(list4); - final JPanel panel13 = new JPanel(); - panel13.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1)); - panel10.add(panel13, new GridConstraints(3, 0, 1, 6, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - panel13.setBorder(BorderFactory.createTitledBorder(null, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.show"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null)); - final JCheckBox checkBox6 = new JCheckBox(); - checkBox6.setActionCommand("GM"); - checkBox6.setName("tokenBarGM"); - checkBox6.setSelected(true); - this.$$$loadButtonText$$$(checkBox6, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "userTerm.GM")); - panel13.add(checkBox6, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox7 = new JCheckBox(); - checkBox7.setActionCommand("GM"); - checkBox7.setName("tokenBarOwner"); - checkBox7.setSelected(true); - this.$$$loadButtonText$$$(checkBox7, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaginPropertiesDialog.label.owner")); - panel13.add(checkBox7, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JCheckBox checkBox8 = new JCheckBox(); - checkBox8.setActionCommand("GM"); - checkBox8.setName("tokenBarEverybody"); - checkBox8.setSelected(true); - this.$$$loadButtonText$$$(checkBox8, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.label.else")); - panel13.add(checkBox8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer13 = new Spacer(); - panel10.add(spacer13, new GridConstraints(4, 9, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final Spacer spacer14 = new Spacer(); - panel10.add(spacer14, new GridConstraints(6, 9, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final JPanel panel14 = new JPanel(); - panel14.setLayout(new GridLayoutManager(1, 6, new Insets(0, 0, 0, 0), -1, -1)); - mainPanel.add(panel14, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button19 = new JButton(); - button19.setActionCommand("OK"); - button19.setName("okButton"); - this.$$$loadButtonText$$$(button19, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.ok")); - panel14.add(button19, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button20 = new JButton(); - button20.setActionCommand("Cancel"); - button20.setName("cancelButton"); - this.$$$loadButtonText$$$(button20, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.cancel")); - panel14.add(button20, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button21 = new JButton(); - button21.setActionCommand("Import"); - button21.setName("importButton"); - this.$$$loadButtonText$$$(button21, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.import")); - panel14.add(button21, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button22 = new JButton(); - button22.setActionCommand("Export"); - button22.setName("exportButton"); - this.$$$loadButtonText$$$(button22, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.export")); - panel14.add(button22, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button23 = new JButton(); - button23.setActionCommand("Import predefined"); - button23.setName("importPredefinedButton"); - this.$$$loadButtonText$$$(button23, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "CampaignPropertiesDialog.button.import")); - panel14.add(button23, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JComboBox comboBox5 = new JComboBox(); - comboBox5.setActionCommand("comboBoxChanged"); - comboBox5.setName("predefinedPropertiesComboBox"); - panel14.add(comboBox5, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - label4.setLabelFor(comboBox1); + /** + * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR + * call it in your code! + * + * @noinspection ALL + */ + private void $$$setupUI$$$() { + mainPanel = new JPanel(); + mainPanel.setLayout(new GridLayoutManager(2, 1, new Insets(5, 5, 5, 5), -1, -1)); + mainPanel.setName("mainForm"); + final JTabbedPane tabbedPane1 = new JTabbedPane(); + mainPanel.add(tabbedPane1, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel1 = new JPanel(); + panel1.setLayout(new GridLayoutManager(1, 1, new Insets(5, 5, 5, 5), -1, -1)); + panel1.setName("propertiesPanel"); + panel1.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.tab.token"), panel1); + final JLabel label1 = new JLabel(); + label1.setName("tokenPropertiesPanel"); + label1.setText("Token Properties Panel"); + panel1.add(label1, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel2 = new JPanel(); + panel2.setLayout(new GridLayoutManager(4, 4, new Insets(5, 5, 5, 5), -1, -1)); + panel2.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.tab.repo"), panel2); + final JTextField textField1 = new JTextField(); + textField1.setName("newServer"); + textField1.setText(""); + panel2.add(textField1, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button1 = new JButton(); + button1.setActionCommand("Add"); + button1.setName("addRepoButton"); + this.$$$loadButtonText$$$(button1, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); + panel2.add(button1, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JScrollPane scrollPane1 = new JScrollPane(); + panel2.add(scrollPane1, + new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JList list1 = new JList(); + list1.setName("repoList"); + scrollPane1.setViewportView(list1); + final JPanel panel3 = new JPanel(); + panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel2.add(panel3, + new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button2 = new JButton(); + button2.setActionCommand("JButton"); + button2.setName("deleteRepoButton"); + this.$$$loadButtonText$$$(button2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); + panel2.add(button2, + new GridConstraints(3, 3, 1, 1, GridConstraints.ANCHOR_NORTHEAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer1 = new Spacer(); + panel2.add(spacer1, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer2 = new Spacer(); + panel2.add(spacer2, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final Spacer spacer3 = new Spacer(); + panel2.add(spacer3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final JPanel panel4 = new JPanel(); + panel4.setLayout(new GridLayoutManager(2, 1, new Insets(5, 5, 5, 5), -1, -1)); + panel4.setPreferredSize(new Dimension(-1, -1)); + panel4.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.tab.sight"), panel4); + final JScrollPane scrollPane2 = new JScrollPane(); + panel4.add(scrollPane2, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, + new Dimension(600, 300), null, 0, false)); + final JEditorPane editorPane1 = new JEditorPane(); + editorPane1.setAutoscrolls(true); + editorPane1.setContentType("text/plain"); + editorPane1.setName("sightPanel"); + editorPane1.setText(""); + editorPane1.setVisible(true); + scrollPane2.setViewportView(editorPane1); + final JScrollPane scrollPane3 = new JScrollPane(); + scrollPane3.setHorizontalScrollBarPolicy(31); + scrollPane3.setVerticalScrollBarPolicy(22); + scrollPane3.setVisible(true); + panel4.add(scrollPane3, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, + new Dimension(600, 300), null, 0, false)); + final JEditorPane editorPane2 = new JEditorPane(); + editorPane2.setAutoscrolls(false); + editorPane2.setContentType("text/html"); + editorPane2.setEditable(false); + editorPane2.setName("sightHelp"); + editorPane2.setSelectionEnd(1); + editorPane2.setSelectionStart(1); + editorPane2.setText("\n \n \n \n \n \n\n"); + editorPane2.setVisible(true); + scrollPane3.setViewportView(editorPane2); + final JPanel panel5 = new JPanel(); + panel5.setLayout(new GridLayoutManager(2, 1, new Insets(5, 5, 5, 5), -1, -1)); + panel5.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.tab.light"), panel5); + final JScrollPane scrollPane4 = new JScrollPane(); + scrollPane4.setVisible(true); + panel5.add(scrollPane4, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, + new Dimension(600, 300), null, 0, false)); + final JEditorPane editorPane3 = new JEditorPane(); + editorPane3.setAutoscrolls(false); + editorPane3.setContentType("text/plain"); + editorPane3.setName("lightPanel"); + editorPane3.setText(""); + scrollPane4.setViewportView(editorPane3); + final JScrollPane scrollPane5 = new JScrollPane(); + scrollPane5.setHorizontalScrollBarPolicy(31); + scrollPane5.setVerticalScrollBarPolicy(22); + scrollPane5.setVisible(true); + panel5.add(scrollPane5, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, + new Dimension(600, 300), null, 0, false)); + final JEditorPane editorPane4 = new JEditorPane(); + editorPane4.setAutoscrolls(false); + editorPane4.setContentType("text/html"); + editorPane4.setEditable(false); + editorPane4.setName("lightHelp"); + editorPane4.setSelectionEnd(1); + editorPane4.setSelectionStart(1); + editorPane4.setText("\n \n \n \n \n \n\n"); + scrollPane5.setViewportView(editorPane4); + final JPanel panel6 = new JPanel(); + panel6.setLayout(new GridLayoutManager(7, 11, new Insets(5, 5, 5, 5), -1, -1)); + panel6.setName("tokenStatesPanel"); + panel6.setVisible(false); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.tab.states"), panel6); + final JComboBox comboBox1 = new JComboBox(); + comboBox1.setActionCommand("comboBoxChanged"); + final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel(); + comboBox1.setModel(defaultComboBoxModel1); + comboBox1.setName("tokenStatesType"); + panel6.add(comboBox1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label2 = new JLabel(); + label2.setName("tokenStatesColorLabel"); + this.$$$loadLabelText$$$(label2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "GridControlPanel.color")); + panel6.add(label2, + new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final ColorWell colorWell1 = new ColorWell(); + Font colorWell1Font = UIManager.getFont("Panel.font"); + if (colorWell1Font != null) { + colorWell1.setFont(colorWell1Font); + } + colorWell1.setName("tokenStatesColor"); + panel6.add(colorWell1, + new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label3 = new JLabel(); + label3.setName("tokenStatesWidthLabel"); + this.$$$loadLabelText$$$(label3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "dialog.resizeStamp.label.width")); + panel6.add(label3, + new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner1 = new JSpinner(); + spinner1.setName("tokenStatesWidth"); + panel6.add(spinner1, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label4 = new JLabel(); + this.$$$loadLabelText$$$(label4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "dialog.NewToken.type")); + panel6.add(label4, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label5 = new JLabel(); + label5.setName("tokenStatesImageFileLabel"); + this.$$$loadLabelText$$$(label5, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.image")); + panel6.add(label5, + new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField2 = new JTextField(); + textField2.setName("tokenStatesImageFile"); + textField2.setText(""); + panel6.add(textField2, new GridConstraints(4, 1, 1, 8, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox2 = new JComboBox(); + comboBox2.setActionCommand("comboBoxChanged"); + final DefaultComboBoxModel defaultComboBoxModel2 = new DefaultComboBoxModel(); + comboBox2.setModel(defaultComboBoxModel2); + comboBox2.setName("tokenStatesCorner"); + panel6.add(comboBox2, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner2 = new JSpinner(); + spinner2.setName("tokenStatesFlowGrid"); + panel6.add(spinner2, new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label6 = new JLabel(); + label6.setName("tokenStatesCornerLabel"); + this.$$$loadLabelText$$$(label6, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.corner")); + panel6.add(label6, + new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label7 = new JLabel(); + label7.setName("tokenStatesFlowGridLabel"); + this.$$$loadLabelText$$$(label7, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "GridControlPanel.size")); + panel6.add(label7, + new GridConstraints(2, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label8 = new JLabel(); + this.$$$loadLabelText$$$(label8, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.mouse")); + panel6.add(label8, + new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox1 = new JCheckBox(); + checkBox1.setName("tokenStatesMouseover"); + checkBox1.setText(""); + panel6.add(checkBox1, + new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner3 = new JSpinner(); + spinner3.setName("tokenStatesOpacity"); + panel6.add(spinner3, new GridConstraints(1, 7, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button3 = new JButton(); + button3.setActionCommand("Add"); + button3.setName("tokenStatesBrowseImage"); + this.$$$loadButtonText$$$(button3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.browse")); + panel6.add(button3, new GridConstraints(4, 10, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label9 = new JLabel(); + this.$$$loadLabelText$$$(label9, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); + panel6.add(label9, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label10 = new JLabel(); + this.$$$loadLabelText$$$(label10, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.opacity")); + panel6.add(label10, + new GridConstraints(1, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label11 = new JLabel(); + this.$$$loadLabelText$$$(label11, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.order")); + label11.setToolTipText(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.order.tooltip")); + panel6.add(label11, + new GridConstraints(2, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner4 = new JSpinner(); + spinner4.setName("tokenStatesIndex"); + panel6.add(spinner4, new GridConstraints(2, 7, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel7 = new JPanel(); + panel7.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1)); + panel6.add(panel7, new GridConstraints(0, 1, 1, 7, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField3 = new JTextField(); + textField3.setName("tokenStatesName"); + textField3.setText(""); + panel7.add(textField3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label12 = new JLabel(); + this.$$$loadLabelText$$$(label12, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.group")); + panel7.add(label12, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField4 = new JTextField(); + textField4.setName("tokenStatesGroup"); + textField4.setText(""); + panel7.add(textField4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer4 = new Spacer(); + panel7.add(spacer4, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer5 = new Spacer(); + panel7.add(spacer5, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final JPanel panel8 = new JPanel(); + panel8.setLayout(new GridLayoutManager(9, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel6.add(panel8, + new GridConstraints(5, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button4 = new JButton(); + button4.setActionCommand("Add"); + button4.setName("tokenStatesAddState"); + this.$$$loadButtonText$$$(button4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); + panel8.add(button4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button5 = new JButton(); + button5.setActionCommand("deleteState\t"); + button5.setName("tokenStatesDeleteState"); + this.$$$loadButtonText$$$(button5, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); + panel8.add(button5, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button6 = new JButton(); + button6.setActionCommand("Add"); + button6.setName("tokenStatesUpdateState"); + this.$$$loadButtonText$$$(button6, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); + panel8.add(button6, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button7 = new JButton(); + button7.setActionCommand("deleteState\t"); + button7.setName("tokenStatesMoveUp"); + this.$$$loadButtonText$$$(button7, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.up")); + panel8.add(button7, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button8 = new JButton(); + button8.setActionCommand("deleteState\t"); + button8.setName("tokenStatesMoveDown"); + this.$$$loadButtonText$$$(button8, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.down")); + panel8.add(button8, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel9 = new JPanel(); + panel9.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1)); + panel9.setName("1234"); + panel6.add(panel9, + new GridConstraints(3, 0, 1, 4, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + panel9.setBorder(BorderFactory.createTitledBorder(null, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.show"), TitledBorder.DEFAULT_JUSTIFICATION, + TitledBorder.DEFAULT_POSITION, null, null)); + final JCheckBox checkBox2 = new JCheckBox(); + checkBox2.setActionCommand("GM"); + checkBox2.setName("tokenStatesGM"); + checkBox2.setSelected(true); + this.$$$loadButtonText$$$(checkBox2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "userTerm.GM")); + panel9.add(checkBox2, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox3 = new JCheckBox(); + checkBox3.setActionCommand("GM"); + checkBox3.setName("tokenStatesOwner"); + checkBox3.setSelected(true); + this.$$$loadButtonText$$$(checkBox3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaginPropertiesDialog.label.owner")); + panel9.add(checkBox3, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox4 = new JCheckBox(); + checkBox4.setActionCommand("GM"); + checkBox4.setName("tokenStatesEverybody"); + checkBox4.setSelected(true); + this.$$$loadButtonText$$$(checkBox4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.else")); + panel9.add(checkBox4, + new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JScrollPane scrollPane6 = new JScrollPane(); + panel6.add(scrollPane6, + new GridConstraints(5, 0, 1, 9, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JList list2 = new JList(); + list2.setName("tokenStatesStates"); + list2.setSelectionMode(0); + scrollPane6.setViewportView(list2); + final Spacer spacer6 = new Spacer(); + panel6.add(spacer6, new GridConstraints(6, 0, 1, 8, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer7 = new Spacer(); + panel6.add(spacer7, new GridConstraints(0, 8, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer8 = new Spacer(); + panel6.add(spacer8, new GridConstraints(5, 9, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel10 = new JPanel(); + panel10.setLayout(new GridLayoutManager(8, 11, new Insets(5, 5, 5, 5), -1, -1)); + panel10.setVisible(true); + tabbedPane1.addTab(this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.tab.bars"), panel10); + final JLabel label13 = new JLabel(); + this.$$$loadLabelText$$$(label13, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); + panel10.add(label13, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField5 = new JTextField(); + textField5.setName("tokenBarName"); + textField5.setText(""); + panel10.add(textField5, new GridConstraints(0, 1, 1, 7, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label14 = new JLabel(); + this.$$$loadLabelText$$$(label14, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "dialog.NewToken.type")); + panel10.add(label14, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox3 = new JComboBox(); + comboBox3.setActionCommand("comboBoxChanged"); + final DefaultComboBoxModel defaultComboBoxModel3 = new DefaultComboBoxModel(); + comboBox3.setModel(defaultComboBoxModel3); + comboBox3.setName("tokenBarType"); + panel10.add(comboBox3, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label15 = new JLabel(); + label15.setName("tokenBarColorLabel"); + this.$$$loadLabelText$$$(label15, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.bar")); + panel10.add(label15, + new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final ColorWell colorWell2 = new ColorWell(); + Font colorWell2Font = UIManager.getFont("Panel.font"); + if (colorWell2Font != null) { + colorWell2.setFont(colorWell2Font); + } + colorWell2.setForeground(new Color(-1)); + colorWell2.setName("tokenBarColor"); + panel10.add(colorWell2, + new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label16 = new JLabel(); + label16.setName("tokenBarThicknessLabel"); + this.$$$loadLabelText$$$(label16, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.thick")); + panel10.add(label16, + new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner5 = new JSpinner(); + spinner5.setName("tokenBarThickness"); + panel10.add(spinner5, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label17 = new JLabel(); + this.$$$loadLabelText$$$(label17, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.inc")); + panel10.add(label17, + new GridConstraints(1, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner6 = new JSpinner(); + spinner6.setName("tokenBarIncrements"); + panel10.add(spinner6, + new GridConstraints(1, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label18 = new JLabel(); + this.$$$loadLabelText$$$(label18, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.side")); + panel10.add(label18, + new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox4 = new JComboBox(); + comboBox4.setActionCommand("comboBoxChanged"); + final DefaultComboBoxModel defaultComboBoxModel4 = new DefaultComboBoxModel(); + comboBox4.setModel(defaultComboBoxModel4); + comboBox4.setName("tokenBarSide"); + panel10.add(comboBox4, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label19 = new JLabel(); + label19.setName("tokenBarBgColorLabel"); + this.$$$loadLabelText$$$(label19, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.background")); + panel10.add(label19, + new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final ColorWell colorWell3 = new ColorWell(); + Font colorWell3Font = UIManager.getFont("Panel.font"); + if (colorWell3Font != null) { + colorWell3.setFont(colorWell3Font); } + colorWell3.setName("tokenBarBgColor"); + panel10.add(colorWell3, + new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label20 = new JLabel(); + this.$$$loadLabelText$$$(label20, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.opacity")); + panel10.add(label20, + new GridConstraints(2, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JSpinner spinner7 = new JSpinner(); + spinner7.setName("tokenBarOpacity"); + panel10.add(spinner7, new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label21 = new JLabel(); + this.$$$loadLabelText$$$(label21, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.mouse")); + panel10.add(label21, + new GridConstraints(2, 6, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox5 = new JCheckBox(); + checkBox5.setName("tokenBarMouseover"); + checkBox5.setText(""); + panel10.add(checkBox5, + new GridConstraints(2, 7, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label22 = new JLabel(); + label22.setName("tokenBarImagesLabel"); + this.$$$loadLabelText$$$(label22, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.images")); + panel10.add(label22, + new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel11 = new JPanel(); + panel11.setLayout(new GridLayoutManager(6, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel10.add(panel11, + new GridConstraints(4, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button9 = new JButton(); + button9.setActionCommand("Add"); + button9.setName("tokenBarAddImage"); + this.$$$loadButtonText$$$(button9, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); + panel11.add(button9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button10 = new JButton(); + button10.setActionCommand("deleteState\t"); + button10.setName("tokenBarDeleteImage"); + this.$$$loadButtonText$$$(button10, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); + panel11.add(button10, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button11 = new JButton(); + button11.setActionCommand("Add"); + button11.setName("tokenBarUpdateImage"); + this.$$$loadButtonText$$$(button11, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); + panel11.add(button11, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button12 = new JButton(); + button12.setActionCommand("deleteState\t"); + button12.setName("tokenBarMoveUpImage"); + this.$$$loadButtonText$$$(button12, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.up")); + panel11.add(button12, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button13 = new JButton(); + button13.setActionCommand("deleteState\t"); + button13.setName("tokenBarMoveDownImage"); + this.$$$loadButtonText$$$(button13, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.down")); + panel11.add(button13, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer9 = new Spacer(); + panel11.add(spacer9, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final Spacer spacer10 = new Spacer(); + panel10.add(spacer10, new GridConstraints(5, 1, 1, 7, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final Spacer spacer11 = new Spacer(); + panel10.add(spacer11, new GridConstraints(0, 8, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final JSlider slider1 = new JSlider(); + slider1.setMajorTickSpacing(20); + slider1.setName("tokenBarTest"); + slider1.setOrientation(1); + slider1.setPaintLabels(true); + slider1.setPaintTicks(true); + panel10.add(slider1, + new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label23 = new JLabel(); + label23.setHorizontalTextPosition(0); + this.$$$loadLabelText$$$(label23, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.preview")); + panel10.add(label23, + new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel12 = new JPanel(); + panel12.setLayout(new GridLayoutManager(6, 1, new Insets(0, 0, 0, 0), -1, -1)); + panel10.add(panel12, + new GridConstraints(6, 10, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button14 = new JButton(); + button14.setActionCommand("Add"); + button14.setName("tokenBarAddBar"); + this.$$$loadButtonText$$$(button14, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.add")); + panel12.add(button14, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button15 = new JButton(); + button15.setActionCommand("deleteState\t"); + button15.setName("tokenBarDeleteBar"); + this.$$$loadButtonText$$$(button15, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.delete")); + panel12.add(button15, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button16 = new JButton(); + button16.setActionCommand("Add"); + button16.setName("tokenBarUpdateBar"); + this.$$$loadButtonText$$$(button16, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); + panel12.add(button16, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button17 = new JButton(); + button17.setActionCommand("deleteState\t"); + button17.setName("tokenBarMoveUp"); + this.$$$loadButtonText$$$(button17, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.up")); + panel12.add(button17, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button18 = new JButton(); + button18.setActionCommand("deleteState\t"); + button18.setName("tokenBarMoveDown"); + this.$$$loadButtonText$$$(button18, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.down")); + panel12.add(button18, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer12 = new Spacer(); + panel12.add(spacer12, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JScrollPane scrollPane7 = new JScrollPane(); + scrollPane7.setName("tokenBarImagesScroll"); + panel10.add(scrollPane7, + new GridConstraints(4, 1, 1, 8, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, + null, null, 0, false)); + final JList list3 = new JList(); + list3.setName("tokenBarImages"); + list3.setSelectionMode(0); + scrollPane7.setViewportView(list3); + final JScrollPane scrollPane8 = new JScrollPane(); + panel10.add(scrollPane8, + new GridConstraints(6, 1, 1, 8, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, + null, null, 0, false)); + final JList list4 = new JList(); + list4.setName("tokenBarBars"); + list4.setSelectionMode(0); + scrollPane8.setViewportView(list4); + final JPanel panel13 = new JPanel(); + panel13.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1)); + panel10.add(panel13, + new GridConstraints(3, 0, 1, 6, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + panel13.setBorder(BorderFactory.createTitledBorder(null, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.show"), TitledBorder.DEFAULT_JUSTIFICATION, + TitledBorder.DEFAULT_POSITION, null, null)); + final JCheckBox checkBox6 = new JCheckBox(); + checkBox6.setActionCommand("GM"); + checkBox6.setName("tokenBarGM"); + checkBox6.setSelected(true); + this.$$$loadButtonText$$$(checkBox6, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "userTerm.GM")); + panel13.add(checkBox6, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox7 = new JCheckBox(); + checkBox7.setActionCommand("GM"); + checkBox7.setName("tokenBarOwner"); + checkBox7.setSelected(true); + this.$$$loadButtonText$$$(checkBox7, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaginPropertiesDialog.label.owner")); + panel13.add(checkBox7, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JCheckBox checkBox8 = new JCheckBox(); + checkBox8.setActionCommand("GM"); + checkBox8.setName("tokenBarEverybody"); + checkBox8.setSelected(true); + this.$$$loadButtonText$$$(checkBox8, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.label.else")); + panel13.add(checkBox8, + new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer13 = new Spacer(); + panel10.add(spacer13, new GridConstraints(4, 9, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final Spacer spacer14 = new Spacer(); + panel10.add(spacer14, new GridConstraints(6, 9, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final JPanel panel14 = new JPanel(); + panel14.setLayout(new GridLayoutManager(1, 6, new Insets(0, 0, 0, 0), -1, -1)); + mainPanel.add(panel14, + new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button19 = new JButton(); + button19.setActionCommand("OK"); + button19.setName("okButton"); + this.$$$loadButtonText$$$(button19, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.ok")); + panel14.add(button19, + new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button20 = new JButton(); + button20.setActionCommand("Cancel"); + button20.setName("cancelButton"); + this.$$$loadButtonText$$$(button20, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.cancel")); + panel14.add(button20, + new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button21 = new JButton(); + button21.setActionCommand("Import"); + button21.setName("importButton"); + this.$$$loadButtonText$$$(button21, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.import")); + panel14.add(button21, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button22 = new JButton(); + button22.setActionCommand("Export"); + button22.setName("exportButton"); + this.$$$loadButtonText$$$(button22, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.export")); + panel14.add(button22, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button23 = new JButton(); + button23.setActionCommand("Import predefined"); + button23.setName("importPredefinedButton"); + this.$$$loadButtonText$$$(button23, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "CampaignPropertiesDialog.button.import")); + panel14.add(button23, + new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JComboBox comboBox5 = new JComboBox(); + comboBox5.setActionCommand("comboBoxChanged"); + comboBox5.setName("predefinedPropertiesComboBox"); + panel14.add(comboBox5, + new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + label4.setLabelFor(comboBox1); + } - private static Method $$$cachedGetBundleMethod$$$ = null; + private static Method $$$cachedGetBundleMethod$$$ = null; - private String $$$getMessageFromBundle$$$(String path, String key) { - ResourceBundle bundle; - try { - Class thisClass = this.getClass(); - if ($$$cachedGetBundleMethod$$$ == null) { - Class dynamicBundleClass = thisClass.getClassLoader().loadClass("com.intellij.DynamicBundle"); - $$$cachedGetBundleMethod$$$ = dynamicBundleClass.getMethod("getBundle", String.class, Class.class); - } - bundle = (ResourceBundle) $$$cachedGetBundleMethod$$$.invoke(null, path, thisClass); - } catch (Exception e) { - bundle = ResourceBundle.getBundle(path); - } - return bundle.getString(key); + private String $$$getMessageFromBundle$$$(String path, String key) { + ResourceBundle bundle; + try { + Class thisClass = this.getClass(); + if ($$$cachedGetBundleMethod$$$ == null) { + Class dynamicBundleClass = thisClass.getClassLoader() + .loadClass("com.intellij.DynamicBundle"); + $$$cachedGetBundleMethod$$$ = dynamicBundleClass.getMethod("getBundle", String.class, + Class.class); + } + bundle = (ResourceBundle) $$$cachedGetBundleMethod$$$.invoke(null, path, thisClass); + } catch (Exception e) { + bundle = ResourceBundle.getBundle(path); } + return bundle.getString(key); + } - /** - * @noinspection ALL - */ - private void $$$loadLabelText$$$(JLabel component, String text) { - StringBuffer result = new StringBuffer(); - boolean haveMnemonic = false; - char mnemonic = '\0'; - int mnemonicIndex = -1; - for (int i = 0; i < text.length(); i++) { - if (text.charAt(i) == '&') { - i++; - if (i == text.length()) break; - if (!haveMnemonic && text.charAt(i) != '&') { - haveMnemonic = true; - mnemonic = text.charAt(i); - mnemonicIndex = result.length(); - } - } - result.append(text.charAt(i)); + /** + * @noinspection ALL + */ + private void $$$loadLabelText$$$(JLabel component, String text) { + StringBuffer result = new StringBuffer(); + boolean haveMnemonic = false; + char mnemonic = '\0'; + int mnemonicIndex = -1; + for (int i = 0; i < text.length(); i++) { + if (text.charAt(i) == '&') { + i++; + if (i == text.length()) { + break; } - component.setText(result.toString()); - if (haveMnemonic) { - component.setDisplayedMnemonic(mnemonic); - component.setDisplayedMnemonicIndex(mnemonicIndex); + if (!haveMnemonic && text.charAt(i) != '&') { + haveMnemonic = true; + mnemonic = text.charAt(i); + mnemonicIndex = result.length(); } + } + result.append(text.charAt(i)); + } + component.setText(result.toString()); + if (haveMnemonic) { + component.setDisplayedMnemonic(mnemonic); + component.setDisplayedMnemonicIndex(mnemonicIndex); } + } - /** - * @noinspection ALL - */ - private void $$$loadButtonText$$$(AbstractButton component, String text) { - StringBuffer result = new StringBuffer(); - boolean haveMnemonic = false; - char mnemonic = '\0'; - int mnemonicIndex = -1; - for (int i = 0; i < text.length(); i++) { - if (text.charAt(i) == '&') { - i++; - if (i == text.length()) break; - if (!haveMnemonic && text.charAt(i) != '&') { - haveMnemonic = true; - mnemonic = text.charAt(i); - mnemonicIndex = result.length(); - } - } - result.append(text.charAt(i)); + /** + * @noinspection ALL + */ + private void $$$loadButtonText$$$(AbstractButton component, String text) { + StringBuffer result = new StringBuffer(); + boolean haveMnemonic = false; + char mnemonic = '\0'; + int mnemonicIndex = -1; + for (int i = 0; i < text.length(); i++) { + if (text.charAt(i) == '&') { + i++; + if (i == text.length()) { + break; } - component.setText(result.toString()); - if (haveMnemonic) { - component.setMnemonic(mnemonic); - component.setDisplayedMnemonicIndex(mnemonicIndex); + if (!haveMnemonic && text.charAt(i) != '&') { + haveMnemonic = true; + mnemonic = text.charAt(i); + mnemonicIndex = result.length(); } + } + result.append(text.charAt(i)); } - - /** - * @noinspection ALL - */ - public JComponent $$$getRootComponent$$$() { - return mainPanel; + component.setText(result.toString()); + if (haveMnemonic) { + component.setMnemonic(mnemonic); + component.setDisplayedMnemonicIndex(mnemonicIndex); } + } + + /** + * @noinspection ALL + */ + public JComponent $$$getRootComponent$$$() { + return mainPanel; + } - /* spotless:on */ + /* spotless:on */ } diff --git a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java index 58cb5294b1..9e1350cbe2 100644 --- a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java +++ b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenBarController.java @@ -25,6 +25,7 @@ import java.awt.image.BufferedImage; import java.io.File; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; @@ -70,11 +71,6 @@ public class TokenBarController ItemListener, ChangeListener { - /** a bit of a hack to map i18n strings to values, but it works until we replace the dialog. */ - private final Map sidesMap = new HashMap<>(); - /** a bit of a hack to map i18n strings to values, but it works until we replace the dialog. */ - private final Map typesMap = new HashMap<>(); - /** Panel containing the campaign properties form panel */ private final AbeillePanel formPanel; @@ -224,20 +220,48 @@ public class TokenBarController new String[0], // Two Tone }; - private static final List types = - List.of( - "CampaignPropertiesDialog.combo.bars.type.twoImages", - "CampaignPropertiesDialog.combo.bars.type.singleImage", - "CampaignPropertiesDialog.combo.bars.type.multipleImages", - "CampaignPropertiesDialog.combo.bars.type.solid", - "CampaignPropertiesDialog.combo.bars.type.twoTone"); - - private static final List sides = - List.of( - "CampaignPropertiesDialog.combo.bars.side.top", - "CampaignPropertiesDialog.combo.bars.type.bottom", - "CampaignPropertiesDialog.combo.bars.type.left", - "CampaignPropertiesDialog.combo.bars.type.right"); + enum BarType { + TWO_IMAGE("CampaignPropertiesDialog.combo.bars.type.twoImages"), + ONE_IMAGE("CampaignPropertiesDialog.combo.bars.type.singleImage"), + MULTIPLE_IMAGE("CampaignPropertiesDialog.combo.bars.type.multipleImages"), + SOLID("CampaignPropertiesDialog.combo.bars.type.solid"), + TWO_TONE("CampaignPropertiesDialog.combo.bars.type.twoTone"); + + private final String i18nKey; + + BarType(String i18nKey) { + this.i18nKey = i18nKey; + } + + @Override + public String toString() { + return I18N.getText(i18nKey); + } + } + + enum BarSide { + TOP("CampaignPropertiesDialog.combo.bars.side.top", Side.TOP), + BOTTOM("CampaignPropertiesDialog.combo.bars.type.bottom", Side.BOTTOM), + LEFT("CampaignPropertiesDialog.combo.bars.type.left", Side.LEFT), + RIGHT("CampaignPropertiesDialog.combo.bars.type.right", Side.RIGHT); + + private final String i18nKey; + private final Side side; + + BarSide(String i18nKey, Side side) { + this.i18nKey = i18nKey; + this.side = side; + } + + public Side getSide() { + return side; + } + + @Override + public String toString() { + return I18N.getText(i18nKey); + } + } /** * Set up the button listeners, spinner models, list cell renderer and selection listeners @@ -258,21 +282,13 @@ public TokenBarController(AbeillePanel panel) { panel.getButton(IMAGE_MOVE_DOWN).addActionListener(this); var typeComboBox = panel.getComboBox(TYPE); - typeComboBox.setModel(new DefaultComboBoxModel()); - for (var type : types) { - var i18n = I18N.getText(type); - typeComboBox.addItem(i18n); - typesMap.put(i18n, type); - } + typeComboBox.setModel(new DefaultComboBoxModel()); + Arrays.stream(BarType.values()).forEach(typeComboBox::addItem); typeComboBox.addActionListener(this); var sideComboBox = panel.getComboBox(SIDE); - sideComboBox.setModel(new DefaultComboBoxModel()); - for (var side : sides) { - var i18n = I18N.getText(side); - sideComboBox.addItem(I18N.getText(side)); - sidesMap.put(i18n, side); - } + sideComboBox.setModel(new DefaultComboBoxModel()); + Arrays.stream(BarSide.values()).forEach(sideComboBox::addItem); panel.getSpinner(THICKNESS).setModel(new SpinnerNumberModel(5, 2, 10, 1)); panel.getSpinner(INCREMENTS).setModel(new SpinnerNumberModel(0, 0, 100, 1)); @@ -740,21 +756,23 @@ public BarTokenOverlay createTokenOverlay(BarTokenOverlay updatedOverlay) { Color bgColor = ((ColorWell) formPanel.getComponent(BG_COLOR)).getColor(); String name = formPanel.getTextComponent(NAME).getText(); boolean mouseover = formPanel.getCheckBox(MOUSEOVER).isSelected(); - String overlay = ((String) formPanel.getComboBox(TYPE).getSelectedItem()); + var overlay = ((BarType) formPanel.getComboBox(TYPE).getSelectedItem()); int opacity = TokenStatesController.getSpinner(OPACITY, "opacity", formPanel); boolean showGM = formPanel.getCheckBox(SHOW_GM).isSelected(); boolean showOwner = formPanel.getCheckBox(SHOW_OWNER).isSelected(); boolean showOthers = formPanel.getCheckBox(SHOW_OTHERS).isSelected(); int thickness = TokenStatesController.getSpinner(THICKNESS, "thickness", formPanel); int increments = TokenStatesController.getSpinner(INCREMENTS, "increments", formPanel); - Side side = - Side.valueOf(((String) formPanel.getComboBox(SIDE).getSelectedItem()).toUpperCase()); + var side = (BarSide) formPanel.getComboBox(SIDE).getSelectedItem(); + + if (overlay == null || side == null) { + return null; + } BarTokenOverlay to = null; - String type = typesMap.get(overlay); - if (type.equals("SOLID_BAR")) { + if (overlay.equals(BarType.SOLID)) { to = new DrawnBarTokenOverlay(name, color, thickness); - } else if (overlay.equals("TWO_TONE_BAR")) { + } else if (overlay.equals(BarType.TWO_TONE)) { to = new TwoToneBarTokenOverlay(name, color, bgColor, thickness); } else { @@ -765,11 +783,11 @@ public BarTokenOverlay createTokenOverlay(BarTokenOverlay updatedOverlay) { model.copyInto(assetIds); // Create the bars - if (type.equals("TWO_IMAGES_BAR")) { + if (overlay.equals(BarType.TWO_IMAGE)) { to = new TwoImageBarTokenOverlay(name, assetIds[1], assetIds[0]); - } else if (type.equals("SINGLE_IMAGE_BAR")) { + } else if (overlay.equals(BarType.ONE_IMAGE)) { to = new SingleImageBarTokenOverlay(name, assetIds[0]); - } else if (type.equals("MULTIPLE_IMAGES_BAR")) { + } else if (overlay.equals(BarType.MULTIPLE_IMAGE)) { to = new MultipleImageBarTokenOverlay(name, assetIds); } // endif } // endif @@ -782,7 +800,7 @@ public BarTokenOverlay createTokenOverlay(BarTokenOverlay updatedOverlay) { to.setShowOthers(showOthers); to.setShowOwner(showOwner); to.setIncrements(increments); - to.setSide(side); + to.setSide(side.getSide()); } // endif return to; } diff --git a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenPropertiesManagementPanelView.java b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenPropertiesManagementPanelView.java index 0074140f82..75ce89d157 100644 --- a/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenPropertiesManagementPanelView.java +++ b/src/main/java/net/rptools/maptool/client/ui/campaignproperties/TokenPropertiesManagementPanelView.java @@ -23,155 +23,224 @@ import javax.swing.*; public class TokenPropertiesManagementPanelView { + private JPanel mainPanel; + /* spotless:off */ - { + + { // GUI initializer generated by IntelliJ IDEA GUI Designer // >>> IMPORTANT!! <<< // DO NOT EDIT OR ADD ANY CODE HERE! - $$$setupUI$$$(); - } + $$$setupUI$$$(); + } - /** - * Method generated by IntelliJ IDEA GUI Designer - * >>> IMPORTANT!! <<< - * DO NOT edit this method OR call it in your code! - * - * @noinspection ALL - */ - private void $$$setupUI$$$() { - mainPanel = new JPanel(); - mainPanel.setLayout(new GridLayoutManager(6, 5, new Insets(0, 0, 0, 0), -1, -1)); - final JLabel label1 = new JLabel(); - this.$$$loadLabelText$$$(label1, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "TokenPropertiesPanel.label.list")); - mainPanel.add(label1, new GridConstraints(0, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JScrollPane scrollPane1 = new JScrollPane(); - mainPanel.add(scrollPane1, new GridConstraints(3, 1, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextArea textArea1 = new JTextArea(); - textArea1.setName("tokenProperties"); - textArea1.setText(""); - scrollPane1.setViewportView(textArea1); - final JScrollPane scrollPane2 = new JScrollPane(); - scrollPane2.setHorizontalScrollBarPolicy(31); - mainPanel.add(scrollPane2, new GridConstraints(2, 0, 3, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JList list1 = new JList(); - list1.setName("tokenTypeList"); - scrollPane2.setViewportView(list1); - final JLabel label2 = new JLabel(); - this.$$$loadLabelText$$$(label2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); - mainPanel.add(label2, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JTextField textField1 = new JTextField(); - textField1.setName("tokenTypeName"); - textField1.setText(""); - mainPanel.add(textField1, new GridConstraints(2, 2, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JLabel label3 = new JLabel(); - this.$$$loadLabelText$$$(label3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "TokenPropertiesPanel.label.type")); - mainPanel.add(label3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button1 = new JButton(); - button1.setActionCommand("New"); - button1.setName("newButton"); - this.$$$loadButtonText$$$(button1, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.new")); - mainPanel.add(button1, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer1 = new Spacer(); - mainPanel.add(spacer1, new GridConstraints(3, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); - final Spacer spacer2 = new Spacer(); - mainPanel.add(spacer2, new GridConstraints(4, 1, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - final JLabel label4 = new JLabel(); - this.$$$loadLabelText$$$(label4, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "TokenPropertiesPanel.format")); - mainPanel.add(label4, new GridConstraints(5, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JPanel panel1 = new JPanel(); - panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1)); - mainPanel.add(panel1, new GridConstraints(5, 3, 1, 1, GridConstraints.ANCHOR_NORTHEAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button2 = new JButton(); - button2.setActionCommand("Update"); - button2.setName("updateButton"); - this.$$$loadButtonText$$$(button2, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); - panel1.add(button2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final JButton button3 = new JButton(); - button3.setActionCommand("Revert"); - button3.setName("revertButton"); - this.$$$loadButtonText$$$(button3, this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.revert")); - panel1.add(button3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); - final Spacer spacer3 = new Spacer(); - mainPanel.add(spacer3, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); - } + /** + * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR + * call it in your code! + * + * @noinspection ALL + */ + private void $$$setupUI$$$() { + mainPanel = new JPanel(); + mainPanel.setLayout(new GridLayoutManager(6, 5, new Insets(0, 0, 0, 0), -1, -1)); + final JLabel label1 = new JLabel(); + this.$$$loadLabelText$$$(label1, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "TokenPropertiesPanel.label.list")); + mainPanel.add(label1, + new GridConstraints(0, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JScrollPane scrollPane1 = new JScrollPane(); + mainPanel.add(scrollPane1, + new GridConstraints(3, 1, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextArea textArea1 = new JTextArea(); + textArea1.setName("tokenProperties"); + textArea1.setText(""); + scrollPane1.setViewportView(textArea1); + final JScrollPane scrollPane2 = new JScrollPane(); + scrollPane2.setHorizontalScrollBarPolicy(31); + mainPanel.add(scrollPane2, + new GridConstraints(2, 0, 3, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JList list1 = new JList(); + list1.setName("tokenTypeList"); + scrollPane2.setViewportView(list1); + final JLabel label2 = new JLabel(); + this.$$$loadLabelText$$$(label2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Label.name")); + mainPanel.add(label2, + new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JTextField textField1 = new JTextField(); + textField1.setName("tokenTypeName"); + textField1.setText(""); + mainPanel.add(textField1, new GridConstraints(2, 2, 1, 2, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JLabel label3 = new JLabel(); + this.$$$loadLabelText$$$(label3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "TokenPropertiesPanel.label.type")); + mainPanel.add(label3, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button1 = new JButton(); + button1.setActionCommand("New"); + button1.setName("newButton"); + this.$$$loadButtonText$$$(button1, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.new")); + mainPanel.add(button1, + new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer1 = new Spacer(); + mainPanel.add(spacer1, new GridConstraints(3, 4, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, + false)); + final Spacer spacer2 = new Spacer(); + mainPanel.add(spacer2, new GridConstraints(4, 1, 1, 3, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + final JLabel label4 = new JLabel(); + this.$$$loadLabelText$$$(label4, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", + "TokenPropertiesPanel.format")); + mainPanel.add(label4, + new GridConstraints(5, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JPanel panel1 = new JPanel(); + panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1)); + mainPanel.add(panel1, + new GridConstraints(5, 3, 1, 1, GridConstraints.ANCHOR_NORTHEAST, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button2 = new JButton(); + button2.setActionCommand("Update"); + button2.setName("updateButton"); + this.$$$loadButtonText$$$(button2, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.update")); + panel1.add(button2, + new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final JButton button3 = new JButton(); + button3.setActionCommand("Revert"); + button3.setName("revertButton"); + this.$$$loadButtonText$$$(button3, + this.$$$getMessageFromBundle$$$("net/rptools/maptool/language/i18n", "Button.revert")); + panel1.add(button3, + new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, + GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, + null, 0, false)); + final Spacer spacer3 = new Spacer(); + mainPanel.add(spacer3, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, + GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, + 0, false)); + } - private static Method $$$cachedGetBundleMethod$$$ = null; + private static Method $$$cachedGetBundleMethod$$$ = null; - private String $$$getMessageFromBundle$$$(String path, String key) { - ResourceBundle bundle; - try { - Class thisClass = this.getClass(); - if ($$$cachedGetBundleMethod$$$ == null) { - Class dynamicBundleClass = thisClass.getClassLoader().loadClass("com.intellij.DynamicBundle"); - $$$cachedGetBundleMethod$$$ = dynamicBundleClass.getMethod("getBundle", String.class, Class.class); - } - bundle = (ResourceBundle) $$$cachedGetBundleMethod$$$.invoke(null, path, thisClass); - } catch (Exception e) { - bundle = ResourceBundle.getBundle(path); - } - return bundle.getString(key); + private String $$$getMessageFromBundle$$$(String path, String key) { + ResourceBundle bundle; + try { + Class thisClass = this.getClass(); + if ($$$cachedGetBundleMethod$$$ == null) { + Class dynamicBundleClass = thisClass.getClassLoader() + .loadClass("com.intellij.DynamicBundle"); + $$$cachedGetBundleMethod$$$ = dynamicBundleClass.getMethod("getBundle", String.class, + Class.class); + } + bundle = (ResourceBundle) $$$cachedGetBundleMethod$$$.invoke(null, path, thisClass); + } catch (Exception e) { + bundle = ResourceBundle.getBundle(path); } + return bundle.getString(key); + } - /** - * @noinspection ALL - */ - private void $$$loadLabelText$$$(JLabel component, String text) { - StringBuffer result = new StringBuffer(); - boolean haveMnemonic = false; - char mnemonic = '\0'; - int mnemonicIndex = -1; - for (int i = 0; i < text.length(); i++) { - if (text.charAt(i) == '&') { - i++; - if (i == text.length()) break; - if (!haveMnemonic && text.charAt(i) != '&') { - haveMnemonic = true; - mnemonic = text.charAt(i); - mnemonicIndex = result.length(); - } - } - result.append(text.charAt(i)); + /** + * @noinspection ALL + */ + private void $$$loadLabelText$$$(JLabel component, String text) { + StringBuffer result = new StringBuffer(); + boolean haveMnemonic = false; + char mnemonic = '\0'; + int mnemonicIndex = -1; + for (int i = 0; i < text.length(); i++) { + if (text.charAt(i) == '&') { + i++; + if (i == text.length()) { + break; } - component.setText(result.toString()); - if (haveMnemonic) { - component.setDisplayedMnemonic(mnemonic); - component.setDisplayedMnemonicIndex(mnemonicIndex); + if (!haveMnemonic && text.charAt(i) != '&') { + haveMnemonic = true; + mnemonic = text.charAt(i); + mnemonicIndex = result.length(); } + } + result.append(text.charAt(i)); + } + component.setText(result.toString()); + if (haveMnemonic) { + component.setDisplayedMnemonic(mnemonic); + component.setDisplayedMnemonicIndex(mnemonicIndex); } + } - /** - * @noinspection ALL - */ - private void $$$loadButtonText$$$(AbstractButton component, String text) { - StringBuffer result = new StringBuffer(); - boolean haveMnemonic = false; - char mnemonic = '\0'; - int mnemonicIndex = -1; - for (int i = 0; i < text.length(); i++) { - if (text.charAt(i) == '&') { - i++; - if (i == text.length()) break; - if (!haveMnemonic && text.charAt(i) != '&') { - haveMnemonic = true; - mnemonic = text.charAt(i); - mnemonicIndex = result.length(); - } - } - result.append(text.charAt(i)); + /** + * @noinspection ALL + */ + private void $$$loadButtonText$$$(AbstractButton component, String text) { + StringBuffer result = new StringBuffer(); + boolean haveMnemonic = false; + char mnemonic = '\0'; + int mnemonicIndex = -1; + for (int i = 0; i < text.length(); i++) { + if (text.charAt(i) == '&') { + i++; + if (i == text.length()) { + break; } - component.setText(result.toString()); - if (haveMnemonic) { - component.setMnemonic(mnemonic); - component.setDisplayedMnemonicIndex(mnemonicIndex); + if (!haveMnemonic && text.charAt(i) != '&') { + haveMnemonic = true; + mnemonic = text.charAt(i); + mnemonicIndex = result.length(); } + } + result.append(text.charAt(i)); } - - /** - * @noinspection ALL - */ - public JComponent $$$getRootComponent$$$() { - return mainPanel; + component.setText(result.toString()); + if (haveMnemonic) { + component.setMnemonic(mnemonic); + component.setDisplayedMnemonicIndex(mnemonicIndex); } + } + + /** + * @noinspection ALL + */ + public JComponent $$$getRootComponent$$$() { + return mainPanel; + } + /* spotless:on */ }