Updates tab has the line

This commit is contained in:
Akarshit Wal
2015-08-19 23:30:45 +05:30
parent ee27b7efdb
commit 1aeeedbd3d
2 changed files with 13 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ public class ContributionManagerDialog {
@Override
protected void paintComponent(Graphics g) {
g.setClip(Toolkit.createRoundRect(0, 0,
getWidth(), getHeight()- 2,
getWidth(), getHeight(),
temp == 0 ? 6 : 0,
temp == 3 ? 6 : 0,
0, 0));
@@ -283,7 +283,7 @@ public class ContributionManagerDialog {
@Override
protected void paintComponent(Graphics g) {
g.setClip(Toolkit.createRoundRect(0, 0,
getWidth(), getHeight() - 2,
getWidth(), getHeight(),
6,
6,
0, 0));

View File

@@ -3,6 +3,7 @@ package processing.app.contrib;
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Comparator;
@@ -52,7 +53,15 @@ public class UpdateContributionTab extends ContributionTab {
progressBar = new JProgressBar();
progressBar.setVisible(false);
buildErrorPanel();
panel = new JPanel(false);
panel = new JPanel(false){
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
g.setColor(new Color(0xe0fffd));
g.fillRect(getX(), panel.getY() - ContributionManagerDialog.TAB_HEIGHT - 2 , panel.getWidth(), 2);
}
};
loaderLabel = new JLabel(Toolkit.getLibIcon("icons/loader.gif"));
loaderLabel.setOpaque(false);
loaderLabel.setBackground(Color.WHITE);
@@ -68,6 +77,7 @@ public class UpdateContributionTab extends ContributionTab {
layout.setVerticalGroup(layout
.createSequentialGroup()
.addGap(2)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
.addComponent(loaderLabel)
.addComponent(contributionListPanel))