Examples of ImagePanel


Examples of mage.components.ImagePanel

            if (Plugins.getInstance().isThemePluginLoaded()) {
                backgroundPane = (ImagePanel) Plugins.getInstance().updateTablePanel(new HashMap<String, JComponent>());
            } else {
                InputStream is = this.getClass().getResourceAsStream(filename);
                BufferedImage background = ImageIO.read(is);
                backgroundPane = new ImagePanel(background, ImagePanel.SCALED);
            }
            backgroundPane.setSize(1024, 768);
            desktopPane.add(backgroundPane, JLayeredPane.DEFAULT_LAYER);
        } catch (IOException e) {
            logger.fatal("Error while setting background.", e);
View Full Code Here

Examples of mage.components.ImagePanel

        ptText.setForeground(Color.white);
        ptText.setGlow(Color.black, TEXT_GLOW_SIZE, TEXT_GLOW_INTENSITY);
        add(ptText);

        BufferedImage sickness = ImageManagerImpl.getInstance().getSicknessImage();
        overlayPanel = new ImagePanel(sickness, ImagePanel.SCALED);
        overlayPanel.setOpaque(false);
        add(overlayPanel);

        imagePanel = new ScaledImagePanel();
        imagePanel.setBorder(BorderFactory.createLineBorder(Color.white));
View Full Code Here

Examples of net.alteiar.panel.ImagePanel

    add(layeredPane, gbc_layeredPane);

    ImageIcon background = new ImageIcon(getClass().getResource(
        "/shadowrun/gui/document/character/attributs.png"));

    JPanel panelBackground = new ImagePanel(background.getImage());
    panelBackground.setLocation(0, 0);
    layeredPane.add(panelBackground, new Integer(1));

    textFieldCon = new FocusTextField();
    textFieldCon.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldCon.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldCon.setText("1");
    textFieldCon.setBounds(28, 39, 52, 32);
    panelBackground.add(textFieldCon);
    textFieldCon.setColumns(10);

    textFieldAgi = new FocusTextField();
    textFieldAgi.setText("1");
    textFieldAgi.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldAgi.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldAgi.setColumns(10);
    textFieldAgi.setBounds(126, 39, 52, 32);
    panelBackground.add(textFieldAgi);

    textFieldRea = new FocusTextField();
    textFieldRea.setText("1");
    textFieldRea.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldRea.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldRea.setColumns(10);
    textFieldRea.setBounds(232, 39, 52, 32);
    panelBackground.add(textFieldRea);

    textFieldFor = new FocusTextField();
    textFieldFor.setText("1");
    textFieldFor.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldFor.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldFor.setColumns(10);
    textFieldFor.setBounds(332, 39, 52, 32);
    panelBackground.add(textFieldFor);

    textFieldCha = new FocusTextField();
    textFieldCha.setText("1");
    textFieldCha.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldCha.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldCha.setColumns(10);
    textFieldCha.setBounds(429, 39, 52, 32);
    panelBackground.add(textFieldCha);

    textFieldInt = new FocusTextField();
    textFieldInt.setText("1");
    textFieldInt.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldInt.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldInt.setColumns(10);
    textFieldInt.setBounds(528, 39, 52, 32);
    panelBackground.add(textFieldInt);

    textFieldLog = new FocusTextField();
    textFieldLog.setText("1");
    textFieldLog.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldLog.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldLog.setColumns(10);
    textFieldLog.setBounds(618, 39, 52, 32);
    panelBackground.add(textFieldLog);

    textFieldVol = new FocusTextField();
    textFieldVol.setText("1");
    textFieldVol.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldVol.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldVol.setColumns(10);
    textFieldVol.setBounds(28, 118, 52, 32);
    panelBackground.add(textFieldVol);

    textFieldChance = new FocusTextField();
    textFieldChance.setText("1");
    textFieldChance.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldChance.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldChance.setColumns(10);
    textFieldChance.setBounds(126, 118, 52, 32);
    panelBackground.add(textFieldChance);

    textFieldMagie = new FocusTextField();
    textFieldMagie.setText("1");
    textFieldMagie.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldMagie.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldMagie.setColumns(10);
    textFieldMagie.setBounds(227, 118, 52, 32);
    panelBackground.add(textFieldMagie);

    textFieldEss = new FocusTextField();
    textFieldEss.setText("1");
    textFieldEss.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldEss.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldEss.setColumns(10);
    textFieldEss.setBounds(332, 118, 52, 32);
    panelBackground.add(textFieldEss);

    textFieldInit = new FocusTextField();
    textFieldInit.setText("1");
    textFieldInit.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldInit.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldInit.setColumns(10);
    textFieldInit.setBounds(429, 118, 52, 32);
    panelBackground.add(textFieldInit);

    textFieldPI = new FocusTextField();
    textFieldPI.setText("1");
    textFieldPI.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldPI.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldPI.setColumns(10);
    textFieldPI.setBounds(528, 118, 52, 32);
    panelBackground.add(textFieldPI);

    JPanel panelTextFields = new JPanel();
    layeredPane.add(panelTextFields, new Integer(0));

    layeredPane.setPreferredSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
View Full Code Here

Examples of net.alteiar.panel.ImagePanel

    add(layeredPane, gbc_layeredPane);

    ImageIcon background = new ImageIcon(getClass().getResource(
        "/shadowrun/gui/document/character/attributs.png"));

    JPanel panelBackground = new ImagePanel(background.getImage());
    panelBackground.setLocation(0, 0);
    layeredPane.add(panelBackground, new Integer(1));

    textFieldCon = new JLabel();
    textFieldCon.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldCon.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldCon.setText("1");
    textFieldCon.setBounds(28, 39, 52, 32);
    panelBackground.add(textFieldCon);

    textFieldAgi = new JLabel();
    textFieldAgi.setText("1");
    textFieldAgi.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldAgi.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldAgi.setBounds(126, 39, 52, 32);
    panelBackground.add(textFieldAgi);

    textFieldRea = new JLabel();
    textFieldRea.setText("1");
    textFieldRea.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldRea.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldRea.setBounds(232, 39, 52, 32);
    panelBackground.add(textFieldRea);

    textFieldFor = new JLabel();
    textFieldFor.setText("1");
    textFieldFor.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldFor.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldFor.setBounds(332, 39, 52, 32);
    panelBackground.add(textFieldFor);

    textFieldCha = new JLabel();
    textFieldCha.setText("1");
    textFieldCha.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldCha.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldCha.setBounds(429, 39, 52, 32);
    panelBackground.add(textFieldCha);

    textFieldInt = new JLabel();
    textFieldInt.setText("1");
    textFieldInt.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldInt.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldInt.setBounds(528, 39, 52, 32);
    panelBackground.add(textFieldInt);

    textFieldLog = new JLabel();
    textFieldLog.setText("1");
    textFieldLog.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldLog.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldLog.setBounds(618, 39, 52, 32);
    panelBackground.add(textFieldLog);

    textFieldVol = new JLabel();
    textFieldVol.setText("1");
    textFieldVol.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldVol.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldVol.setBounds(28, 118, 52, 32);
    panelBackground.add(textFieldVol);

    textFieldChance = new JLabel();
    textFieldChance.setText("1");
    textFieldChance.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldChance.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldChance.setBounds(126, 118, 52, 32);
    panelBackground.add(textFieldChance);

    textFieldMagie = new JLabel();
    textFieldMagie.setText("1");
    textFieldMagie.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldMagie.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldMagie.setBounds(227, 118, 52, 32);
    panelBackground.add(textFieldMagie);

    textFieldEss = new JLabel();
    textFieldEss.setText("1");
    textFieldEss.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldEss.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldEss.setBounds(332, 118, 52, 32);
    panelBackground.add(textFieldEss);

    textFieldInit = new JLabel();
    textFieldInit.setText("1");
    textFieldInit.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldInit.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldInit.setBounds(429, 118, 52, 32);
    panelBackground.add(textFieldInit);

    textFieldPI = new JLabel();
    textFieldPI.setText("1");
    textFieldPI.setHorizontalAlignment(SwingConstants.CENTER);
    textFieldPI.setFont(new Font("Tahoma", Font.PLAIN, 14));
    textFieldPI.setBounds(528, 118, 52, 32);
    panelBackground.add(textFieldPI);

    JPanel panelTextFields = new JPanel();
    layeredPane.add(panelTextFields, new Integer(0));

    layeredPane.setPreferredSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
View Full Code Here

Examples of net.sourceforge.marathon.screencapture.ImagePanel

            }
        }
        if (captureFile != null) {
            File file = new File(System.getProperty(Constants.PROP_IMAGE_CAPTURE_DIR), captureFile);
            try {
                ImagePanel imagePanel = new ImagePanel(new FileInputStream(file), false);
                ArrayList<Annotation> annotations = imagePanel.getAnnotations();
                printWriter.println(indent + "  " + "<annotations>");
                for (Annotation a : annotations) {
                    printWriter.println(indent + "    " + "<annotation x=\"" + a.x + "\" y=\"" + a.y + "\" w=\"" + a.width
                            + "\" h=\"" + a.height + "\" text=\"" + quoteCharacters(a.getText()) + "\"/>");
                }
View Full Code Here

Examples of org.apache.syncope.console.pages.panels.ImagePanel

                statusName = Status.SUSPENDED.toString();
                alt = "inactive icon";
                title = "Disabled";
        }

        final ImagePanel imagePanel = new ImagePanel(componentId, IMG_STATUES + statusName + Constants.PNG_EXT);
        imagePanel.add(new Behavior() {

            private static final long serialVersionUID = 1469628524240283489L;

            @Override
            public void onComponentTag(final Component component, final ComponentTag tag) {
View Full Code Here

Examples of org.jamesii.gui.utils.ImagePanel

    JPanel splashPanel = new JPanel(new BorderLayout());

    progressLabel = new JLabel();
    progressLabel.setBorder(new EmptyBorder(2, 5, 2, 5));
    imagePanel = new ImagePanel(image);
    imagePanel.setLayout(new BorderLayout());
    imagePanel.setBackground(new Color(0, 0, 0, 0));
    imagePanel.add(progressLabel, BorderLayout.PAGE_END);

    JPanel appInfoPanel = new JPanel(new BorderLayout());
View Full Code Here

Examples of org.jwall.app.ui.ImagePanel

        variables.addAll( varsAvailable );

       
        getContentPane().setLayout( new BorderLayout() );

        ImagePanel i = new ImagePanel(InputDialog.class.getResource("/icons/logo_tall_60x513.jpg"), 0, 0, 60, 513);
        i.setHeight( 513 );
        i.setWidth( 60 );
        i.setBackground( Color.BLACK );
        this.getContentPane().add( i, BorderLayout.WEST );


        JTextPane msg = new JTextPane();
        msg.setBackground( Color.WHITE );
View Full Code Here

Examples of org.jwall.app.ui.ImagePanel

        setResizable( false );
        setTitle( "Select Template for Rule Generation" );
       
        this.getContentPane().setLayout( new BorderLayout() );
       
        ImagePanel i = new ImagePanel(InputDialog.class.getResource("/icons/logo_tall_60x513.jpg"), 0, 0, 60, 513);
        i.setHeight( 513 );
        i.setWidth( 60 );
        i.setBackground( Color.BLACK );
        this.getContentPane().add( i, BorderLayout.WEST );
       
       
        JEditorPane msg = new JEditorPane();
        msg.setBackground( Color.WHITE );
View Full Code Here

Examples of org.jwall.app.ui.ImagePanel

        certificates = certs;
        certPanel = new CertificatePanel();

        this.getContentPane().setLayout( new BorderLayout() );
       
        ImagePanel i = new ImagePanel(InputDialog.class.getResource("/icons/logo_tall_60x513.jpg"), 0, 0, 60, 513);
        i.setHeight( 513 );
        i.setWidth( 60 );
        i.setBackground( Color.BLACK );
        this.getContentPane().add( i, BorderLayout.WEST );
       
       
        JEditorPane msg = new JEditorPane();
        msg.setBackground( Color.WHITE );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.