Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
YoshikoWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Spohr
YoshikoWrapper
Commits
1bfd7af3
Commit
1bfd7af3
authored
7 years ago
by
Philipp Spohr
Browse files
Options
Downloads
Patches
Plain Diff
Fix for width?
parent
3ae8a0a3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hhu/ba/yoshikoWrapper/swing/components/ResultPanel.java
+9
-6
9 additions, 6 deletions
...e/hhu/ba/yoshikoWrapper/swing/components/ResultPanel.java
with
9 additions
and
6 deletions
src/main/java/de/hhu/ba/yoshikoWrapper/swing/components/ResultPanel.java
+
9
−
6
View file @
1bfd7af3
...
...
@@ -44,6 +44,7 @@ import javax.swing.JPanel;
import
javax.swing.JTabbedPane
;
import
javax.swing.LayoutStyle
;
import
javax.swing.SwingConstants
;
import
javax.swing.SwingUtilities
;
import
org.cytoscape.application.swing.CytoPanelComponent
;
import
org.cytoscape.application.swing.CytoPanelName
;
...
...
@@ -84,9 +85,6 @@ NetworkAboutToBeDestroyedListener
//MACRO
//TODO: (Nächstes Leben) find a good solution with Swing that scales the panel and respects layout
private
static
final
int
HACKFIX_FIXED_WIDTH
=
128
+
256
;
private
final
JTabbedPane
tabbedPane
;
private
final
JButton
destroyButton
;
...
...
@@ -183,7 +181,7 @@ NetworkAboutToBeDestroyedListener
horizontalGroup
.
addComponent
(
marker
,
DEFAULT_SIZE
,
DEFAULT_SIZE
,
DEFAULT_SIZE
)
.
addComponent
(
invalidLabel
,
DEFAULT_SIZE
,
PREFERRED_SIZE
,
Short
.
MAX_VALUE
)
.
addComponent
(
tabbedPane
,
HACKFIX_FIXED_WIDTH
,
PREFERRED_SIZE
,
Short
.
MAX_VALUE
)
.
addComponent
(
tabbedPane
,
DEFAULT_SIZE
,
PREFERRED_SIZE
,
Short
.
MAX_VALUE
)
.
addComponent
(
destroyButton
,
DEFAULT_SIZE
,
DEFAULT_SIZE
,
DEFAULT_SIZE
);
verticalGroup
.
addComponent
(
marker
,
DEFAULT_SIZE
,
DEFAULT_SIZE
,
PREFERRED_SIZE
)
...
...
@@ -195,9 +193,14 @@ NetworkAboutToBeDestroyedListener
layout
.
setAutoCreateGaps
(
true
);
layout
.
setAutoCreateContainerGaps
(
true
);
//SWING BLACK MAGIC FOR ADEPTS
this
.
setMinimumSize
(
new
Dimension
(
HACKFIX_FIXED_WIDTH
,
this
.
getMinimumSize
().
height
));
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
revalidate
();
}
});
this
.
setLayout
(
layout
);
registerAllListeners
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment