可多行显示和输入的TextBox(java)

   nPosX = 0;
   nPosY = nPosY + 1;
   jRemarkLabelZH = new JLabel("Remark(中文)");
   jPoDescriptPanel.add(jRemarkLabelZH, new GridBagConstraints(0, 7, 1, 1,
     0.0, 0.0, GridBagConstraints.NORTHWEST,
     GridBagConstraints.NONE, new Insets(5, 25, 5, 5), 0, 0));
   nPosX = nPosX + 1;
   jRemarkTextAreaZH = new JTextArea();
   jRemarkTextAreaZH.setLineWrap(true);
   jRemarkTextScrollPaneZH = new JScrollPane();
   jRemarkTextScrollPaneZH.setPreferredSize(new Dimension(355, 60));
   jRemarkTextScrollPaneZH
     .setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   jRemarkTextScrollPaneZH.setViewportView(jRemarkTextAreaZH);
   jPoDescriptPanel.add(jRemarkTextScrollPaneZH, new GridBagConstraints(1,
     7, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST,
     GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 1, 0));
   // Remark(英文)
   nPosX = nPosX + 1;
   jRemarkLabelEN = new JLabel("Remark(英文)");
   jPoDescriptPanel.add(jRemarkLabelEN, new GridBagConstraints(2, 7, 1, 1,
     0.0, 0.0, GridBagConstraints.NORTHWEST,
     GridBagConstraints.NONE, new Insets(5, 25, 5, 5), 0, 0));

你可能感兴趣的:(可多行显示和输入的TextBox(java))