Package csa.jportal.theme

Examples of csa.jportal.theme.Theme


    /** Creates new form DeckStatPanel */
    public DeckStatPanel() {
        initComponents();
        try // if I dont catch on my mac an exception will be thrown in netbeans and I cant edit the design!
        {
            Theme t = Configuration.getConfiguration().getCurrentTheme();
            jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("BlackIcon.png")));

        }
        catch (Throwable e) {}
    }
View Full Code Here


    {
        JLabel[] allL={jLabelA1, jLabelA2, jLabelA3, jLabelA4, jLabelA5, jLabelA6, jLabelA7, jLabelA8, jLabelA9, jLabelA9p};
        JLabel[] creatureL={jLabelC1, jLabelC2, jLabelC3, jLabelC4, jLabelC5, jLabelC6, jLabelC7, jLabelC8, jLabelC9, jLabelC9p};
        JLabel[] spellL={jLabelS1, jLabelS2, jLabelS3, jLabelS4, jLabelS5, jLabelS6, jLabelS7, jLabelS8, jLabelS9, jLabelS9p};

        Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        String sep = File.separator;
        if (color.equals("A")) jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("AllIcon.png")));
        if (color.equals("W")) jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("WhiteIcon.png")));
        if (color.equals("B")) jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("BlackIcon.png")));
        if (color.equals("G")) jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("GreenIcon.png")));
        if (color.equals("R")) jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("RedIcon.png")));
        if (color.equals("U")) jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("BlueIcon.png")));

        if (deck == null) return;
        CardList list = new CardList(deck.getCards());

        if (!color.equals("A")) list = list.getSubListByColor(color);
View Full Code Here

        initComponents();
        setDoubleBuffered(false);
        Blacker.saveDefault(this);
//        Blacker.setBlack(this);
        setComponentZOrder(jLabelBackImage, getComponentCount()-1);
        Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        mShop = t.getImage("Shop.png");
        if (getWidth() > 0)
        {
            //Image shop = csa.util.Utility.imageScale(mShop, getWidth(), getHeight());
            jLabelBackImage.setIcon(new javax.swing.ImageIcon(mShop)); // NOI18N
        }
View Full Code Here

        return this;
    }
   
    void init()
    {
        Theme t = Configuration.getConfiguration().getCurrentTheme();
        jLabelBlue.setIcon(new javax.swing.ImageIcon(t.getImage("BlueIconSmall.png"))); // NOI18N
        jLabelBlue.setText(""); // NOI18N

        jLabelRed.setIcon(new javax.swing.ImageIcon(t.getImage("RedIconSmall.png"))); // NOI18N
        jLabelRed.setText(""); // NOI18N

        jLabelGreen.setIcon(new javax.swing.ImageIcon(t.getImage("GreenIconSmall.png"))); // NOI18N
        jLabelGreen.setText(""); // NOI18N

        jLabelWhite.setIcon(new javax.swing.ImageIcon(t.getImage("WhiteIconSmall.png"))); // NOI18N
        jLabelWhite.setText(""); // NOI18N

        jLabelBlack.setIcon(new javax.swing.ImageIcon(t.getImage("BlackIconSmall.png"))); // NOI18N
        jLabelBlack.setText(""); // NOI18N
       
        mGenDeckDataPool = new GenDeckDataPool();
        resetConfigPool(false, "");
    }
View Full Code Here

        jCheckBoxIsAttachment.setSelected(false);
        jCheckBoxCanGenerateMana.setSelected(false);
        jCheckBoxHasUpkeep.setSelected(false);
        jCheckBoxLandInText.setSelected(false);

        Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        jLabel1.setIcon(new javax.swing.ImageIcon(t.getImage("Back.png")));
    }
View Full Code Here

    /** Creates new form BoosterDraft */
    public BoosterDraft() {
        initComponents();

        Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        jLabel14.setIcon(new javax.swing.ImageIcon(t.getImage("JPortalBooster.png")));
       

        jPanel3.removeAll();
        jPanel3.setLayout(new VerticalLayout());

View Full Code Here

    }

    public StarterKit() {
        initComponents();
       
         Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        jLabel3.setIcon(new javax.swing.ImageIcon(t.getImage("TitleSmall.png")));

        jButtonNext.setIcon(new javax.swing.ImageIcon(t.getImage("AllIconSmall.png")));
        jButtonYes.setIcon(new javax.swing.ImageIcon(t.getImage("AllIconSmall.png")));

       
        setOpaque(false);
        setDoubleBuffered(false);
        setForeground(Color.white);
View Full Code Here

    /** Creates new form ProgressPanel */
    public ProgressPanel(JFrame frame) {
        super(frame.getRootPane(),frame );
        initComponents();
       
        Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        jLabel2.setIcon(new javax.swing.ImageIcon(t.getImage("Sword.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(t.getImage("Shield.png")));
      
       
    }
View Full Code Here

    JPortalView mParent =null;
    /** Creates new form JPortalInternalFrame */
    public JPortalInternalFrame() {
        initComponents();
        Theme t = Configuration.getConfiguration().getCurrentTheme();
       
        setFrameIcon(new javax.swing.ImageIcon(t.getImage("BlueIconSmall.png")));
    }
View Full Code Here

        return this;
    }

    public TipOfDayGUI() {
        initComponents();
        Theme t = Configuration.getConfiguration().getCurrentTheme();
        jLabel3.setIcon(new javax.swing.ImageIcon(t.getImage("TitleSmall.png")));
        jButtonNext.setIcon(new javax.swing.ImageIcon(t.getImage("AllIconSmall.png")));

        String text = TipOfTheDay.tipsOfDay[Global.getRand().nextInt(TipOfTheDay.tipsOfDay.length)];

        jLabelText.setText("<html>"+text+"</html>");
View Full Code Here

TOP

Related Classes of csa.jportal.theme.Theme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.