Ejemplo n.º 1
0
 private void jbInit() throws Exception {
   titledBorder1 = new TitledBorder("");
   this.setLayout(borderLayout1);
   this.setBorder(titledBorder1);
   titledBorder1.setTitleColor(Color.blue);
   titledBorder1.setTitle(
       ClientSettings.getInstance().getResources().getResource("documents filter"));
   this.add(sp, BorderLayout.CENTER);
   sp.setBorder(BorderFactory.createEmptyBorder());
   sp.getViewport().add(innerPanel, null);
   sp.setAutoscrolls(true);
   innerPanel.setLayout(gridBagLayout1);
 }
Ejemplo n.º 2
0
 public void parseTextArea(Element elm) {
   JTextPane text = new JTextPane();
   JScrollPane jsp =
       new JScrollPane(
           text, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
   jsp.setAutoscrolls(true);
   SpazPosition lp = parseSpazPosition(elm);
   if (lp == null) {
     return;
   }
   this.add(jsp, lp);
   parseBorder(jsp, elm);
   parseAttributes(elm, jsp);
 }