本文整理汇总了Java中org.netbeans.lib.awtextra.AbsoluteLayout类的典型用法代码示例。如果您正苦于以下问题:Java AbsoluteLayout类的具体用法?Java AbsoluteLayout怎么用?Java AbsoluteLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbsoluteLayout类属于org.netbeans.lib.awtextra包,在下文中一共展示了AbsoluteLayout类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: initComponents
import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
/** 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")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
}
开发者ID:Torridity,项目名称:dsworkbench,代码行数:12,代码来源:TimePicker.java
示例17: createComponents
import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private void createComponents() {
this.pannelloPrincipale = new javax.swing.JPanel();
this.pannelloPrincipale.setLayout(new java.awt.BorderLayout());
this.glassPane = new GraphSceneGlassPane();
this.intermediatePanel = new JPanel();
this.intermediatePanel.setName(Costanti.INTERMEDIE);
this.intermediatePanel.setLayout(new AbsoluteLayout());
this.intermediatePanel.setBackground(Costanti.getIntermediateColor());
this.scrollSource = new JScrollPane();
this.scrollSource.setMinimumSize(new Dimension(200, getHeight()));
this.splitChild = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, scrollSource, intermediatePanel);
//this.splitChild.setOneTouchExpandable(true);
this.scrollTarget = new JScrollPane();
this.scrollTarget.setMinimumSize(new Dimension(200, getHeight()));
this.split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, this.getSplitChild(), scrollTarget);
this.pannelloPrincipale.setOpaque(false);
this.glassPane.setOpaque(false);
this.setOpaque(false);
OverlayLayout overlaylayout = new OverlayLayout(this);
this.setLayout(overlaylayout);
this.add(this.glassPane);
this.add(this.pannelloPrincipale);
this.pannelloPrincipale.add(getSplit());
setSplitPane();
initMouseListener();
}
开发者ID:dbunibas,项目名称:spicy,代码行数:33,代码来源:JLayeredPaneCorrespondences.java
示例18: getFieldText
import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private static JPanel getFieldText(Document doc){
NodeList nodeLst = doc.getElementsByTagName("text");
// System.out.println("Information of all text");
JPanel p = new JPanel(new AbsoluteLayout());
int posy=0;
for (int s = 0; s < nodeLst.getLength(); s++) {
Node Node = nodeLst.item(s);
if (Node.getNodeType() == Node.ELEMENT_NODE) {
Element tElmnt = (Element) Node;
String desc= tElmnt.getAttribute("description");
String value= tElmnt.getAttribute("value");
// System.out.println(desc+" : " + value);
/////////////////////////////////////////////////////////////
JLabel lab = new JLabel("<html>"+desc+"</html>");
p.add(lab,new AbsoluteConstraints(0,posy,130,30));
/////////////////////////////////////////////////////////////
Element valElmnt = (Element) Node;
NodeList valNmElmntLst = valElmnt.getElementsByTagName("name");
Element valNmElmnt = (Element) valNmElmntLst.item(0);
NodeList valNm = valNmElmnt.getChildNodes();
// System.out.println("First value : " + ((Node) valNm.item(0)).getNodeValue());
JTextField text = new JTextField();
text.setName(((Node) valNm.item(0)).getNodeValue());
text.setText(value);
// text.setPreferredSize(new Dimension (60,10));
p.add(text,new AbsoluteConstraints(140,posy,100,30));
}
posy+=40;
}
p.setSize(200,posy+50);
return p;
}
开发者ID:lpantano,项目名称:java_seqbuster,代码行数:41,代码来源:xmlReader.java
示例19: getFieldCheck
import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
private static JPanel getFieldCheck(Document doc){
NodeList nodeLst = doc.getElementsByTagName("checkbox");
// System.out.println("Information of all check");
JPanel p = new JPanel(new AbsoluteLayout());
int posy=0;
for (int s = 0; s < nodeLst.getLength(); s++) {
Node Node = nodeLst.item(s);
if (Node.getNodeType() == Node.ELEMENT_NODE) {
Element tElmnt = (Element) Node;
String desc= tElmnt.getAttribute("description");
/////////////////////////////////////////////////////////////
Element valElmnt = (Element) Node;
NodeList valNmElmntLst = valElmnt.getElementsByTagName("name");
Element valNmElmnt = (Element) valNmElmntLst.item(0);
NodeList valNm = valNmElmnt.getChildNodes();
// System.out.println("First value : " + ((Node) valNm.item(0)).getNodeValue());
/////////////////////////////////////////////////////////////
JCheckBox check = new JCheckBox();
check.setName(((Node) valNm.item(0)).getNodeValue());
// check.set
check.setText(desc);
// text.setPreferredSize(new Dimension (60,10));
p.add(check,new AbsoluteConstraints(0,posy,150,30));
}
posy+=40;
}
p.setSize(200,posy+10);
return p;
}
开发者ID:lpantano,项目名称:java_seqbuster,代码行数:38,代码来源:xmlReader.java
示例20: initComponents
import org.netbeans.lib.awtextra.AbsoluteLayout; //导入依赖的package包/类
public void initComponents(){
//Init controls
nakPanel = new RasiNakshathraChooser(DisplayStrings.NAK_STR.toString(Language.ENGLISH), nakChooserSize);
JPanel filterPanel = new JPanel(new AbsoluteLayout());
chandraFilter = new JCheckBox(DisplayStrings.FILTER_BY_CHANDRA_STR.toString(), true);
nakFilter = new JCheckBox(DisplayStrings.FILTER_BY_MUHURTHA_STR.toString());
okButton = new JButton("Ok");
filterPanel.setBorder(UIConsts.getTitleBorder(DisplayStrings.FILTER_STR.toString()));
okButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
okButtonClicked();
}
});
//Create filter panel
LocationGenerator locGen = new LocationGenerator(origin, 0, 20);
filterPanel.add(chandraFilter, new AbsoluteConstraints(locGen.getNextRow(), new Dimension(200,20)));
filterPanel.add(nakFilter, new AbsoluteConstraints(locGen.getNextRow(), new Dimension(200,20)));
//Add nak chooser and filter panel
dlgPanel.add(nakPanel, new AbsoluteConstraints(nakPanelLoc.getLocation(), nakPanelLoc.getSize()));
dlgPanel.add(filterPanel, new AbsoluteConstraints(filterPanelLoc.getLocation(), filterPanelLoc.getSize()));
// Add button
Dimension okButSize = new Dimension(60, 20);
dlgPanel.add(okButton, new AbsoluteConstraints(new Point((dlgSize.width - okButSize.width) / 2 ,270), okButSize));
// Add outer panel
add(dlgPanel);
setBackground(UIConsts.THEME_CLR);
setVisible(true);
}
开发者ID:erajasekar,项目名称:Astrosoft,代码行数:34,代码来源:MuhurthaInput.java
注:本文中的org.netbeans.lib.awtextra.AbsoluteLayout类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论