OSDN Git Service

Nimbusのバグでbackground colorが設定できない問題に対応
authoryukihane <yukihane.feather@gmail.com>
Sat, 3 Sep 2011 02:38:08 +0000 (11:38 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:41:43 +0000 (20:41 +0900)
frontend/src/saccubus/MainFrame_AboutBox.java

index c0f697c..101fa00 100644 (file)
@@ -1,5 +1,6 @@
 package saccubus;
 
+import java.awt.Color;
 import static javax.swing.WindowConstants.*;
 
 import java.awt.Dimension;
@@ -11,6 +12,7 @@ import java.io.IOException;
 import java.io.InputStreamReader;
 import java.util.logging.Level;
 import java.util.logging.Logger;
+import javax.swing.BorderFactory;
 import javax.swing.GroupLayout;
 import javax.swing.ImageIcon;
 import javax.swing.JButton;
@@ -76,7 +78,9 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {
         imageLabel.setIcon(icon);
 
         final JTextArea productField = createProductField();
-        productField.setBackground(basePanel.getBackground());
+        productField.setOpaque(false);
+        productField.setBorder(BorderFactory.createEmptyBorder());
+        productField.setBackground(new Color(0, 0, 0, 0));
 
         final JScrollPane licensePane = createLicensePane();