mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Removed calls to setFocusable()
This commit is contained in:
@@ -73,7 +73,6 @@ public class ContributionListPanel extends JPanel implements Scrollable, Contrib
|
||||
this.contribManager = libraryManager;
|
||||
|
||||
setLayout(new GridBagLayout());
|
||||
setFocusable(true);
|
||||
setOpaque(true);
|
||||
|
||||
if (Base.isLinux()) {
|
||||
@@ -481,7 +480,6 @@ public class ContributionListPanel extends JPanel implements Scrollable, Contrib
|
||||
|
||||
setBackground(ContributionListPanel.this.getBackground());
|
||||
setOpaque(true);
|
||||
setFocusable(true);
|
||||
setSelected(false);
|
||||
|
||||
setExpandListener(this, new MouseAdapter() {
|
||||
@@ -497,7 +495,6 @@ public class ContributionListPanel extends JPanel implements Scrollable, Contrib
|
||||
* panel is not clicked
|
||||
*/
|
||||
private void addPaneComponents() {
|
||||
setFocusable(true);
|
||||
setLayout(new GridBagLayout());
|
||||
|
||||
{ // Header text area. The name of the contribution and its authors.
|
||||
@@ -697,8 +694,6 @@ public class ContributionListPanel extends JPanel implements Scrollable, Contrib
|
||||
|
||||
this.contrib = contrib;
|
||||
|
||||
setFocusable(true);
|
||||
|
||||
StringBuilder nameText = new StringBuilder();
|
||||
nameText.append("<html><body><b>");
|
||||
if (contrib.getUrl() == null) {
|
||||
|
||||
@@ -36,6 +36,7 @@ import java.util.zip.*;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.event.*;
|
||||
|
||||
import processing.app.contribution.*;
|
||||
@@ -212,8 +213,8 @@ public class ContributionManager {
|
||||
c.gridwidth = 2;
|
||||
c.weighty = 1;
|
||||
c.weightx = 1;
|
||||
|
||||
final JScrollPane scrollPane = new JScrollPane();
|
||||
|
||||
JScrollPane scrollPane = new JScrollPane();
|
||||
scrollPane.setPreferredSize(new Dimension(300, 300));
|
||||
scrollPane.setViewportView(contributionListPanel);
|
||||
scrollPane.getViewport().setOpaque(true);
|
||||
|
||||
Reference in New Issue
Block a user