Java AbsoluteLayout类代码示例

本文整理汇总了Java中org.netbeans.lib.awtextra.AbsoluteLayout的典型用法代码示例。如果您正苦于以下问题:Java AbsoluteLayout类的具体用法?Java AbsoluteLayout怎么用?Java AbsoluteLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java AbsoluteLayout类代码示例

AbsoluteLayout类属于org.netbeans.lib.awtextra包,在下文中一共展示了AbsoluteLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private void init() {
    setLayout(new AbsoluteLayout());
    dateText.setText("");
    dateText.setEditable(false);
    dateText.setBackground(new Color(255, 255, 255));
    add(dateText, new AbsoluteConstraints(0, 0, 120, 20));
    dateDropdownButton.setText("...");
    dateDropdownButton.setMargin(new Insets(2, 2, 2, 2));
    dateDropdownButton.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent actionevent) {
            onButtonClick(actionevent);
        }
    });
    add(dateDropdownButton, new AbsoluteConstraints(125, 0, 20, 21));

    dateText.setText("");
    dateText.setEditable(false);
    dateText.setBackground(new Color(255, 255, 255));
} 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:21,代码来源:DateField.java

示例2: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private void init() {
    setLayout(new AbsoluteLayout());
    timeText.setText("");
    timeText.setEditable(false);
    timeText.setBackground(new Color(255, 255, 255));
    add(timeText, new AbsoluteConstraints(0, 0, 120, 20));
    timeDropdownButton.setText("...");
    timeDropdownButton.setMargin(new Insets(2, 2, 2, 2));
    timeDropdownButton.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent actionevent) {
            onButtonClick(actionevent);
        }
    });
    add(timeDropdownButton, new AbsoluteConstraints(125, 0, 20, 21));

    timeText.setText("");
    timeText.setEditable(false);
    timeText.setBackground(new Color(255, 255, 255));
} 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:21,代码来源:TimeField.java

示例3: AstrosoftDialog

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/** Creates a new instance of AstrosoftDialog */
public AstrosoftDialog(AstroSoft parent, String title, Dimension size) {
    
    super( parent, title, false );
    this.parent = parent;
    dlgPanel = new JPanel(new AbsoluteLayout());
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    
    /*java.awt.Dimension screenSize =
        java.awt.Toolkit.getDefaultToolkit(  ).getScreenSize(  );*/
    
    java.awt.Dimension screenSize = AstroSoft.getScreenSize();

    setBounds( 
        ( screenSize.width - size.width ) / 2, ( screenSize.height - size.height ) / 2, size.width,
        size.height );    
    this.setResizable(false);
} 
开发者ID:erajasekar,项目名称:Astrosoft,代码行数:19,代码来源:AstrosoftDialog.java

示例4: initComponents

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
public void initComponents() {
    setLayout(new AbsoluteLayout());
    rasiCombo =  new JComboBox(Rasi.values());
	nakCombo =  new JComboBox();
	
	populateNakCombo(Rasi.Mesha);
    rasiCombo.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e){
            populateNakCombo((Rasi)rasiCombo.getSelectedItem());
        }
    });
    
    rasiCombo.setFont(font);
    nakCombo.setFont(font);
    showPanel();
} 
开发者ID:erajasekar,项目名称:Astrosoft,代码行数:17,代码来源:RasiNakshathraChooser.java

示例5: shouldAdjustDesignerSize

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private static boolean shouldAdjustDesignerSize(Component topComp) {
    // Null and AbsolutLayout can't provide a reasonable preferred or
    // minimum size, don't try to adjust the designer size according to them.
    // (E.g. when reacting to a change in a subpanel with Free Design which
    // is included in a top container with null layout.)
    if (topComp instanceof Container) {
        LayoutManager lm = ((Container)topComp).getLayout();
        if (lm == null || lm instanceof AbsoluteLayout) {
            return false;
        }
    }
    return true;
} 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:FormDesigner.java

示例6: config

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * Configura os componentes do view
 */
private void config() {
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    setLayout(new AbsoluteLayout());
    setUndecorated(true);
    setBackground(new Color(0, 0, 0, 0));
    JLabel l = new JLabel(icon);
    add(l, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0));
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:12,代码来源:CardBack.java

示例7: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * configurar o painel
 */
private void init() {
    text.setLayout(new AbsoluteLayout());
    add(text);
    add(icon);
    background = new Color(238, 199, 122, 255);
    setVisible(true);
    setOpaque(false);
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:12,代码来源:Animacao.java

示例8: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * Configurar os componentes da janela
 */
public final void init() {
    setLayout(new AbsoluteLayout());
    setUndecorated(true);
    setBackground(new Color(0, 0, 0, 0));
    add(new JLabel(imagem), new AbsoluteConstraints(0, 0));
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            dispose();
        }
    });
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:17,代码来源:PopUp.java

示例9: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * Configurar o painel
 */
private void init() {
    text.setLayout(new AbsoluteLayout());
    add(text);
    add(icon);
    setVisible(false);
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:10,代码来源:Animacao.java

示例10: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
public void init() {
    setLayout(new AbsoluteLayout());
    setUndecorated(true);
    setBackground(new Color(0, 0, 0, 0));
    add(new JLabel(card), AbsolutesConstraints.ZERO);
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:8,代码来源:PopUp.java

示例11: DragAndDrop

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
public DragAndDrop(Point pressed, Point released) {
    super(new AbsoluteLayout());
    this.pressed = pressed;
    this.released = released;
    setVisible(false);
    setOpaque(false);
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:8,代码来源:DragAndDrop.java

示例12: preencher

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * preenche o painel com a lista de cards disponíveis para muligar
 */
private void preencher() {
    for (int index = 0; index < labelX.length; index++) {
        JPanel panel = new JPanel(new AbsoluteLayout());
        panel.setBackground(new Color(0, 0, 0, 0));
        JLabel label_card = new JLabel(Images.getCardIcon(Images.CARD_ORIGINAL, deck.get(index).getId()));
        labelX[index] = new JLabel();
        label_card.addMouseListener(eventoClicarNoCard(index));
        labelX[index].addMouseListener(eventoClicarNaImagemX(index));
        panel.add(labelX[index], new AbsoluteConstraints(20, 125));
        panel.add(label_card, new AbsoluteConstraints(0, 0));
        jPanelCards.add(panel);
    }
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:17,代码来源:Muligar.java

示例13: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * Configura os componentes do view
 */
private void init() {
    popUp.setLayout(new AbsoluteLayout());
    popUp.setUndecorated(true);
    popUp.setBackground(new Color(0, 0, 0, 0));
    popUp.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    popUp.add(imagem, new AbsoluteConstraints(0, 0));
    popUp.setSize(DimensionValues.CARD_ORIGINAL);
    popUp.setLocationRelativeTo(null);
    popUp.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            dispose();
        }
    });
    nome.setBackground(new Color(0, 0, 0, 150));
    nome.setOpaque(true);
    nome.setFont(new Font("Arial Narrow", Font.PLAIN, 14));
    nome.setForeground(Color.WHITE);
    custo.setFont(new Font("Tahoma", Font.PLAIN, 18));
    custo.setForeground(Color.WHITE);
    backgroundImage.setBorder(new LineBorder(Color.WHITE, 1));
    duplo.setBackground(new Color(0, 0, 0, 150));
    duplo.setOpaque(true);
    duplo.setFont(new Font("Tahoma", Font.BOLD, 18));
    duplo.setForeground(new Color(128, 128, 0));
    duplo.setVisible(false);
    setLayout(new AbsoluteLayout());
    add(duplo, new AbsoluteConstraints(177, 1, 20, 28));
    add(custo, new AbsoluteConstraints(0, 0, 32, 30));
    add(custoImage, new AbsoluteConstraints(5, 0));
    add(nome, new AbsoluteConstraints(32, 5));
    add(backgroundImage, new AbsoluteConstraints(0, 0, 197, 30));
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:37,代码来源:CardView.java

示例14: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/**
 * Configura os componentes da view
 */
private void init() {
    nome.setBackground(new Color(0, 0, 0, 110));
    nome.setOpaque(true);
    nome.setFont(new Font("Arial Narrow", Font.BOLD, 16));
    nome.setForeground(Color.WHITE);
    backgroundImage.setBorder(new LineBorder(Color.WHITE, 1));
    setLayout(new AbsoluteLayout());
    add(nome, new AbsoluteConstraints(1, 27, 128, 16));
    add(backgroundImage, new AbsoluteConstraints(0, 0, 130, 45));
} 
开发者ID:limagiran,项目名称:hearthstone,代码行数:14,代码来源:Deck.java

示例15: init

import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private void init() {
    setLayout(new AbsoluteLayout());
    hourPanel.setLayout(new AbsoluteLayout());
    hourPanel.setBackground(Color.RED);
    add(hourPanel, new AbsoluteConstraints(10, 10, 240, 40));
    addHourLabels();
    addMinuteLabels(false);
} 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:9,代码来源:TimePicker.java

本文标签属性:

示例:示例是什么意思

代码:代码生成器

java:javascript什么意思

AbsoluteLayout:AbsoluteLayout

上一篇:Java AccountNumber类代码示例
下一篇:C++ Throw函数代码示例

为您推荐