From 9307e62bca16326882dc91d400322d036149d90d Mon Sep 17 00:00:00 2001 From: smklimenko Date: Fri, 6 Sep 2024 12:11:00 +0100 Subject: [PATCH] 'Port' field width fixed in InstanceEditorDialog (5 chars) --- CHANGELOG.md | 6 ++++++ .../brains/view/treeview/forms/InstanceEditorDialog.java | 3 ++- version.properties | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b66d7a2..95fd467 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # KdbInsideBrains Changelog +## [5.9.1] + +### Fixed + +- Width of "Port" field in "Instance Editor" dialog fixed to show five numbers. + ## [5.9.0] ### Changed diff --git a/src/main/java/org/kdb/inside/brains/view/treeview/forms/InstanceEditorDialog.java b/src/main/java/org/kdb/inside/brains/view/treeview/forms/InstanceEditorDialog.java index faa548e..92792f0 100644 --- a/src/main/java/org/kdb/inside/brains/view/treeview/forms/InstanceEditorDialog.java +++ b/src/main/java/org/kdb/inside/brains/view/treeview/forms/InstanceEditorDialog.java @@ -404,7 +404,8 @@ private JPanel createLeftPanel() { final JPanel p2 = new JPanel(new BorderLayout(3, 0)); p2.add(new JLabel("Port:"), BorderLayout.LINE_START); - portField.setPreferredSize(new Dimension(50, 0)); + portField.setColumns(6); + portField.setCanBeEmpty(false); p2.add(portField, BorderLayout.LINE_END); p.add(p2, BorderLayout.LINE_END); diff --git a/version.properties b/version.properties index 9db2a86..67c3df5 100644 --- a/version.properties +++ b/version.properties @@ -1 +1 @@ -pluginVersion=5.9.0 \ No newline at end of file +pluginVersion=5.9.1 \ No newline at end of file