Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
ca9431e5
Commit
ca9431e5
authored
10 years ago
by
Andrea Enrici
Browse files
Options
Downloads
Patches
Plain Diff
solved bugs with tabbedPane
parent
ae613057
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/window/JDialogPortArtifact.java
+15
-10
15 additions, 10 deletions
src/ui/window/JDialogPortArtifact.java
with
15 additions
and
10 deletions
src/ui/window/JDialogPortArtifact.java
+
15
−
10
View file @
ca9431e5
...
@@ -136,6 +136,8 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -136,6 +136,8 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
panel3
.
setPreferredSize
(
new
Dimension
(
650
,
350
));
panel3
.
setPreferredSize
(
new
Dimension
(
650
,
350
));
tabbedPane
=
new
JTabbedPane
();
tabbedPane
=
new
JTabbedPane
();
panel4
=
new
JPanel
();
panel5
=
new
JPanel
();
c1
.
gridwidth
=
1
;
c1
.
gridwidth
=
1
;
c1
.
gridheight
=
1
;
c1
.
gridheight
=
1
;
...
@@ -279,12 +281,13 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -279,12 +281,13 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
c0
.
gridwidth
=
GridBagConstraints
.
REMAINDER
;
//end row
c0
.
gridwidth
=
GridBagConstraints
.
REMAINDER
;
//end row
c0
.
fill
=
GridBagConstraints
.
BOTH
;
c0
.
fill
=
GridBagConstraints
.
BOTH
;
c
.
add
(
panel2
,
c0
);
c
.
add
(
panel2
,
c0
);
if
(
(
bufferType
==
Buffer
.
Ma
pper
Buffer
)
||
(
bufferType
==
Buffer
.
Interleaver
Buffer
)
)
{
if
(
(
bufferType
==
Buffer
.
Ma
inMemory
Buffer
)
||
(
bufferType
==
Buffer
.
FepBuffer
)
||
(
bufferType
==
Buffer
.
Adaif
Buffer
)
)
{
c
.
add
(
tabbedPane
,
c0
);
panel3
.
setBorder
(
new
javax
.
swing
.
border
.
TitledBorder
(
"Code generation: buffer attributes"
)
);
}
tabbedPane
.
removeAll
();
else
{
tabbedPane
.
addTab
(
"Data"
,
panel3
);
c
.
add
(
panel3
,
c0
);
tabbedPane
.
setSelectedIndex
(
0
);
}
}
c
.
add
(
tabbedPane
,
c0
);
c0
.
gridwidth
=
1
;
c0
.
gridwidth
=
1
;
c0
.
gridheight
=
1
;
c0
.
gridheight
=
1
;
...
@@ -301,7 +304,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -301,7 +304,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
private
void
makeFepBufferPanel
(
GridBagConstraints
c1
,
GridBagConstraints
c2
)
{
private
void
makeFepBufferPanel
(
GridBagConstraints
c1
,
GridBagConstraints
c2
)
{
//FepBuffer FepBuffer = new FepBuffer( "noName", null
);
panel3
.
setBorder
(
new
javax
.
swing
.
border
.
TitledBorder
(
"Code generation: buffer attributes"
)
);
c2
.
anchor
=
GridBagConstraints
.
LINE_START
;
c2
.
anchor
=
GridBagConstraints
.
LINE_START
;
numSamplesTF
=
new
JTextField
(
sampleLength
,
5
);
numSamplesTF
=
new
JTextField
(
sampleLength
,
5
);
...
@@ -570,6 +573,8 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -570,6 +573,8 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
private
void
makeMainMemoryBufferPanel
(
GridBagConstraints
c1
,
GridBagConstraints
c2
)
{
private
void
makeMainMemoryBufferPanel
(
GridBagConstraints
c1
,
GridBagConstraints
c2
)
{
panel3
.
setBorder
(
new
javax
.
swing
.
border
.
TitledBorder
(
"Code generation: buffer attributes"
));
c2
.
anchor
=
GridBagConstraints
.
LINE_START
;
c2
.
anchor
=
GridBagConstraints
.
LINE_START
;
numSamplesTF
=
new
JTextField
(
numSamples
,
5
);
numSamplesTF
=
new
JTextField
(
numSamples
,
5
);
panel3
.
add
(
new
JLabel
(
"Number of samples = "
),
c2
);
panel3
.
add
(
new
JLabel
(
"Number of samples = "
),
c2
);
...
@@ -648,7 +653,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -648,7 +653,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
makeFepBufferPanel
(
c1
,
c2
);
makeFepBufferPanel
(
c1
,
c2
);
panel3
.
revalidate
();
panel3
.
revalidate
();
panel3
.
repaint
();
panel3
.
repaint
();
tabbedPane
.
add
(
"Data"
,
panel3
);
tabbedPane
.
add
Tab
(
"Data"
,
panel3
);
break
;
break
;
case
Buffer
.
MapperBuffer
:
case
Buffer
.
MapperBuffer
:
cleanPanels
();
cleanPanels
();
...
@@ -665,7 +670,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -665,7 +670,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
makeAdaifBufferPanel
(
c1
,
c2
);
makeAdaifBufferPanel
(
c1
,
c2
);
panel3
.
revalidate
();
panel3
.
revalidate
();
panel3
.
repaint
();
panel3
.
repaint
();
tabbedPane
.
add
(
"Data"
,
panel3
);
tabbedPane
.
add
Tab
(
"Data"
,
panel3
);
break
;
break
;
case
Buffer
.
InterleaverBuffer
:
case
Buffer
.
InterleaverBuffer
:
cleanPanels
();
cleanPanels
();
...
@@ -682,7 +687,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -682,7 +687,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
makeMainMemoryBufferPanel
(
c1
,
c2
);
makeMainMemoryBufferPanel
(
c1
,
c2
);
panel3
.
revalidate
();
panel3
.
revalidate
();
panel3
.
repaint
();
panel3
.
repaint
();
tabbedPane
.
add
(
"Data"
,
panel3
);
tabbedPane
.
add
Tab
(
"Data"
,
panel3
);
break
;
break
;
default
:
//the main memory buffer
default
:
//the main memory buffer
panel3
.
removeAll
();
panel3
.
removeAll
();
...
@@ -690,7 +695,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
...
@@ -690,7 +695,7 @@ public class JDialogPortArtifact extends javax.swing.JDialog implements ActionLi
makeFepBufferPanel
(
c1
,
c2
);
makeFepBufferPanel
(
c1
,
c2
);
panel3
.
revalidate
();
panel3
.
revalidate
();
panel3
.
repaint
();
panel3
.
repaint
();
tabbedPane
.
add
(
"Data"
,
panel3
);
tabbedPane
.
add
Tab
(
"Data"
,
panel3
);
break
;
break
;
}
}
}
}
...
...
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