Removed calls to setFocusable()

This commit is contained in:
pesckal
2011-08-12 00:10:44 +00:00
parent b78892f5de
commit 5561f48f90
2 changed files with 3 additions and 7 deletions
@@ -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);