Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Jul 14, 2024
1 parent bfb8e37 commit b814264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/messageTab/Info/InfoTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public void mouseClicked(MouseEvent e) {
int row = target.getSelectedRow();
int column = target.getSelectedColumn();

//双击浏览器打开url,弃用
if (headers[column].equalsIgnoreCase("Value____xxxxxxx")) {//双击url在浏览器中打开
//双击浏览器打开url
if (headers[column].equalsIgnoreCase("Value")) {//双击url在浏览器中打开
try {
InfoEntry entry = getEntryAt(row);
if (entry.getType().equals(InfoEntry.Type_URL)) {
Expand All @@ -137,7 +137,7 @@ public void mouseClicked(MouseEvent e) {
} else {
List<String> urls = new ArrayList<>();
urls.add(url);
doRequestUrl(urls);
doOpenUrlInBrowser(urls);
}
}
} catch (Exception e1) {
Expand Down
6 changes: 3 additions & 3 deletions src/messageTab/Info/InfoTableMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class InfoTableMenu extends JPopupMenu {

JMenuItem numItem = new JMenuItem(infoTable.getSelectedRows().length + " items selected");

JMenuItem copyItem = new JMenuItem(new AbstractAction("Copy (double click)") {
JMenuItem copyItem = new JMenuItem(new AbstractAction("Copy (Ctrl+C)") {
@Override
public void actionPerformed(ActionEvent actionEvent) {
String content = infoTable.getSelectedContent();
Expand Down Expand Up @@ -57,7 +57,7 @@ public void actionPerformed(ActionEvent actionEvent) {
});


JMenuItem openInBrowerItem = new JMenuItem(new AbstractAction("Open URL In Brower") {
JMenuItem openInBrowerItem = new JMenuItem(new AbstractAction("Open URL In Brower(Double Click)") {
@Override
public void actionPerformed(ActionEvent actionEvent) {
List<String> urls = infoTable.getSelectedUrls();
Expand All @@ -67,8 +67,8 @@ public void actionPerformed(ActionEvent actionEvent) {

add(numItem);
add(copyItem);
add(doRequestItem);
add(openInBrowerItem);
add(doRequestItem);
add(changeBaseUrlItem);
}
}

0 comments on commit b814264

Please sign in to comment.