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
28e334a0
Commit
28e334a0
authored
Sep 19, 2015
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui: fix code cell renderer in find/usage dialogs
parent
d060f5b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CommonSearchDialog.java
jadx-gui/src/main/java/jadx/gui/ui/CommonSearchDialog.java
+9
-2
No files found.
jadx-gui/src/main/java/jadx/gui/ui/CommonSearchDialog.java
View file @
28e334a0
...
...
@@ -42,6 +42,7 @@ import java.awt.event.KeyEvent;
import
java.awt.event.MouseAdapter
;
import
java.awt.event.MouseEvent
;
import
java.util.ArrayList
;
import
java.util.Enumeration
;
import
java.util.List
;
import
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
;
...
...
@@ -155,14 +156,20 @@ public abstract class CommonSearchDialog extends JDialog {
resultsModel
=
new
ResultsModel
();
resultsTable
=
new
ResultsTable
(
resultsModel
);
resultsTable
.
setShowHorizontalLines
(
false
);
// resultsTable.setAutoCreateColumnsFromModel(true);
resultsTable
.
setDragEnabled
(
false
);
resultsTable
.
setSelectionMode
(
ListSelectionModel
.
SINGLE_SELECTION
);
resultsTable
.
setBackground
(
ContentArea
.
BACKGROUND
);
resultsTable
.
setColumnSelectionAllowed
(
false
);
resultsTable
.
setAutoResizeMode
(
JTable
.
AUTO_RESIZE_OFF
);
resultsTable
.
setAutoscrolls
(
false
);
resultsTable
.
setDefaultRenderer
(
Object
.
class
,
new
ResultsTableCellRenderer
());
ResultsTableCellRenderer
renderer
=
new
ResultsTableCellRenderer
();
Enumeration
<
TableColumn
>
columns
=
resultsTable
.
getColumnModel
().
getColumns
();
while
(
columns
.
hasMoreElements
())
{
TableColumn
column
=
columns
.
nextElement
();
column
.
setCellRenderer
(
renderer
);
}
resultsTable
.
addMouseListener
(
new
MouseAdapter
()
{
public
void
mouseClicked
(
MouseEvent
evt
)
{
if
(
evt
.
getClickCount
()
==
2
)
{
...
...
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