Skip to content

Commit

Permalink
- code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Oct 26, 2024
1 parent 169f9bc commit 65731ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.io.File;

public class PanelPsetKurz extends PanelVorlage {
public boolean ok;
private DatenPset pSet;
private final ListePset listePset;
private static final Logger logger = LogManager.getLogger();
Expand All @@ -37,7 +36,7 @@ public PanelPsetKurz(Daten d, JFrame parentComponent, ListePset llistePset) {
if (!listePset.isEmpty()) {
jListPset.setSelectedIndex(0);
init();
jListPset.addListSelectionListener(e -> {
jListPset.addListSelectionListener(_ -> {
if (!stopBeob) {
stopBeob = true;
init();
Expand Down Expand Up @@ -149,7 +148,6 @@ private void setFeld(JPanel panel, String name, String[] arr) {
c.insets = new Insets(4, 10, 4, 10);
c.weightx = 1;
c.weighty = 0;
// c.gridx = 0;
c.gridy = 0;

// Label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class CustomTreeCellRenderer
extends DefaultTreeCellRenderer {
@Override
public Component getTreeCellRendererComponent(
JTree tree,
Object value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ private void prepareHyperlink(String url) {
hyperlink.setEnabled(true);
hyperlink.setToolTipText(url);
hyperlink.setClicked(false);
var popupMenu = new JPopupMenu();
popupMenu.add(new CopyToClipboardAction(url));
hyperlink.setComponentPopupMenu(popupMenu);
var urlPopupMenu = new JPopupMenu();
urlPopupMenu.add(new CopyToClipboardAction(url));
hyperlink.setComponentPopupMenu(urlPopupMenu);
}

private void initComponents() {
Expand Down

0 comments on commit 65731ac

Please sign in to comment.