/*
 * RightControlPanel.java
 *
 * Created on November 11, 2008, 10:34 PM
 */

package medusa;

import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JOptionPane;

/**
 *
 * @author  Sean
 */
public class RightControlPanel extends javax.swing.JPanel {

    /** Creates new form RightControlPanel */
    public RightControlPanel(MedusaSimplerFrame parent, MedusaSettings ss) {
        this.parent=parent;
        this.ss=ss;
        initComponents();
        
    }

    GradientPaint backgroundPaint=new GradientPaint(0f,100f,Color.white,0f,400f,Color.blue);
    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2d=(Graphics2D) g;
        g2d.setPaint(backgroundPaint);
        g2d.fillRoundRect(0, 0, this.getWidth(), this.getHeight(), 10, 10);
    }
    
        private MedusaSettings ss;
    //private ShowEdgePanel[] seps;
    private medusa.MedusaSimplerFrame parent; //ref to parent

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // //GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        legendScrollPane = new javax.swing.JScrollPane();
        showEdgeMultiPanel = new medusa.ShowEdgeMultiPanel(parent,ss);

        setBorder(javax.swing.BorderFactory.createTitledBorder("Utilities"));
        setMaximumSize(new java.awt.Dimension(200, 500));
        setOpaque(false);
        setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS));

        legendScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        legendScrollPane.setPreferredSize(new java.awt.Dimension(200, 100));
        legendScrollPane.setViewportView(showEdgeMultiPanel);

        add(legendScrollPane);
    }// //GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane legendScrollPane;
    private medusa.ShowEdgeMultiPanel showEdgeMultiPanel;
    // End of variables declaration//GEN-END:variables

}

 

Ads help maintain this website.