當前位置: 首頁>>代碼示例>>Java>>正文


Java JLabel.LEFT屬性代碼示例

本文整理匯總了Java中javax.swing.JLabel.LEFT屬性的典型用法代碼示例。如果您正苦於以下問題:Java JLabel.LEFT屬性的具體用法?Java JLabel.LEFT怎麽用?Java JLabel.LEFT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在javax.swing.JLabel的用法示例。


在下文中一共展示了JLabel.LEFT屬性的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: DrawImageThread

public DrawImageThread(String serial, int port, JPanel parPanel){
	this.serial = serial;
	this.port = port;
	
	this.drawArea = new DrawCanvas();
	this.drawArea.setPreferredSize(new Dimension(MainFrame.AREA_WIDTH, MainFrame.AREA_HEIGHT));
	parPanel.setLayout(new BorderLayout());
	parPanel.add(this.drawArea, BorderLayout.CENTER);
	JPanel jpBotinfo = new JPanel();
	jpBotinfo.setLayout(new GridLayout(2,1));
	JLabel jlPort = new JLabel("pc端口號:"+new Integer(this.port).toString(), JLabel.LEFT);
	jpBotinfo.add(jlPort);
	JLabel jlSerial = new JLabel("設備號:"+this.serial, JLabel.LEFT);
	jpBotinfo.add(jlSerial);
	parPanel.add(jpBotinfo, BorderLayout.SOUTH);

	parPanel.setBackground(new Color(255,255,255));
	//啟動adb連接
	this.parser = new SelfParse(this.serial, this.port);
}
 
開發者ID:larryzhuo,項目名稱:JavaMinicap,代碼行數:20,代碼來源:DrawImageThread.java

示例2: _QueryFunction_JComponent_pjer6y_a0a0n0a

private JComponent _QueryFunction_JComponent_pjer6y_a0a0n0a() {

      JPanel panel = new JPanel();
      ImageIcon imageIcon = new ImageIcon();
      JLabel label = new JLabel(SPropertyOperations.getString(myNode, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")), imageIcon, JLabel.LEFT);
      JTextField textField = new JTextField();
      textField.setColumns(35);
      {
        final SNode uitTeVoerenDialoog = ListSequence.fromList(SModelOperations.nodes(SNodeOperations.getModel(myNode), MetaAdapterFactory.getConcept(0x15970de38fe74b13L, 0x81c738b38d51c39aL, 0x77d59dfe8d9bbd90L, "Simulatie.structure.UitTeVoerenDialoog"))).first();
        if (SNodeOperations.isInstanceOf(uitTeVoerenDialoog, MetaAdapterFactory.getConcept(0x15970de38fe74b13L, 0x81c738b38d51c39aL, 0x77d59dfe8d9bbd90L, "Simulatie.structure.UitTeVoerenDialoog"))) {
          SNode waarde = InstantieVanObject__BehaviorDescriptor.GeefWaardeVanKenmerk_idFR9FxGLp3H.invoke(SLinkOperations.getTarget(uitTeVoerenDialoog, MetaAdapterFactory.getReferenceLink(0x15970de38fe74b13L, 0x81c738b38d51c39aL, 0x77d59dfe8d9bbd90L, 0x690f11b6e01d86a4L, "onderwerp")), myNode);
          textField.setText(Waarde__BehaviorDescriptor.GeefWaardeString_idFzw$g_H4hz.invoke(waarde));
        }
      }
      panel.add(label);
      panel.add(textField);
      return panel;
    }
 
開發者ID:diederikd,項目名稱:DeBrug,代碼行數:18,代碼來源:UitTeVoerenDialoog_EditorBuilder_a.java

示例3: createChromePanel

void createChromePanel() {
	chromePanel = new JPanel(new BorderLayout());
	chromePanel.setBackground(Color.WHITE);
	JLabel lbl = new JLabel(XDMIconMap.getIcon("CI_ICON"), JLabel.LEFT);
	lbl.setBorder(new EmptyBorder(20, 20, 20, 20));
	chromePanel.add(lbl, BorderLayout.NORTH);
	JTextArea text3 = new JTextArea();
	text3.setBackground(bgColor);
	text3.setOpaque(false);
	text3.setWrapStyleWord(true);
	text3.setEditable(false);
	text3.setLineWrap(true);
	text3.setBorder(new EmptyBorder(0, 20, 20, 20));
	String txt = new File(System.getProperty("user.home"), "xdm-helper")
			.getAbsolutePath();
	text3.setText(StringResource.getString("BI_LBL_17").replace("<FOLDER>",
			txt));
	chromePanel.add(text3);
}
 
開發者ID:kmarius,項目名稱:xdman,代碼行數:19,代碼來源:BrowserIntDlg.java

示例4: buildLabel

/**
 * Build the label for the parameter
 *
 * @param text
 * @return JComponent
 */
private JComponent buildLabel(String text) {
    JLabel label = new JLabel(text, JLabel.LEFT);
    label.setBorder(new EmptyBorder(0, 15, 0, 0));
    label.setFont(new Font("Segoe UI", Font.PLAIN, 9));
    JPanel container = new JPanel(new BorderLayout(5, 0));
    container.add(label, BorderLayout.WEST);
    container.setAlignmentX(JLabel.LEFT_ALIGNMENT);
    container.setOpaque(false);
    return container;
}
 
開發者ID:VISNode,項目名稱:VISNode,代碼行數:16,代碼來源:NodeView.java


注:本文中的javax.swing.JLabel.LEFT屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。