Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
b44a1e3a
Commit
b44a1e3a
authored
Nov 26, 2013
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui: fix tab selection
parent
b18dabee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
MainWindow.java
jadx-gui/src/main/java/jadx/gui/MainWindow.java
+4
-2
No files found.
jadx-gui/src/main/java/jadx/gui/MainWindow.java
View file @
b44a1e3a
...
@@ -203,7 +203,7 @@ public class MainWindow extends JFrame {
...
@@ -203,7 +203,7 @@ public class MainWindow extends JFrame {
int
id
=
tabbedPane
.
getTabCount
()
-
1
;
int
id
=
tabbedPane
.
getTabCount
()
-
1
;
openTabs
.
put
(
cls
,
id
);
openTabs
.
put
(
cls
,
id
);
tabbedPane
.
setSelectedIndex
(
id
);
tabbedPane
.
setSelectedIndex
(
id
);
tabbedPane
.
setTabComponentAt
(
id
,
makeTabComponent
(
cls
,
panel
));
tabbedPane
.
setTabComponentAt
(
id
,
makeTabComponent
(
cls
,
panel
,
id
));
}
}
if
(
panel
!=
null
)
{
if
(
panel
!=
null
)
{
JTextArea
textArea
=
getTextArea
(
panel
);
JTextArea
textArea
=
getTextArea
(
panel
);
...
@@ -212,7 +212,7 @@ public class MainWindow extends JFrame {
...
@@ -212,7 +212,7 @@ public class MainWindow extends JFrame {
}
}
}
}
private
Component
makeTabComponent
(
final
JClass
cls
,
final
Component
comp
)
{
private
Component
makeTabComponent
(
final
JClass
cls
,
final
Component
comp
,
final
int
id
)
{
String
name
=
cls
.
getCls
().
getFullName
();
String
name
=
cls
.
getCls
().
getFullName
();
JPanel
panel
=
new
JPanel
(
new
FlowLayout
(
FlowLayout
.
CENTER
,
3
,
0
));
JPanel
panel
=
new
JPanel
(
new
FlowLayout
(
FlowLayout
.
CENTER
,
3
,
0
));
panel
.
setOpaque
(
false
);
panel
.
setOpaque
(
false
);
...
@@ -243,6 +243,8 @@ public class MainWindow extends JFrame {
...
@@ -243,6 +243,8 @@ public class MainWindow extends JFrame {
public
void
mouseClicked
(
MouseEvent
e
)
{
public
void
mouseClicked
(
MouseEvent
e
)
{
if
(
e
.
getButton
()
==
MouseEvent
.
BUTTON2
)
{
if
(
e
.
getButton
()
==
MouseEvent
.
BUTTON2
)
{
closeCodeTab
(
cls
,
comp
);
closeCodeTab
(
cls
,
comp
);
}
else
{
tabbedPane
.
setSelectedIndex
(
id
);
}
}
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment