Package net.alteiar.panel

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


    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

TOP

Related Classes of net.alteiar.panel.ImagePanel

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.