Package net.sourceforge.squirrel_sql.fw.gui

Examples of net.sourceforge.squirrel_sql.fw.gui.MultipleLineLabel


      pnl.add(_httpNonProxyHostsLabel, gbc);

      ++gbc.gridy;
      --gbc.gridx;
      gbc.gridwidth = GridBagConstraints.REMAINDER;
      pnl.add(new MultipleLineLabel(s_stringMgr.getString("ProxyPreferencesPane.notes")), gbc);
      gbc.gridwidth = 1;
      ++gbc.gridx;

      ++gbc.gridx;
      gbc.gridy = 0;
View Full Code Here


      gbc.weightx = 1.0;

      gbc.gridx = 0;
      gbc.gridy = 0;
         gbc.insets = new Insets(4, 4, 4, 4);
         pnl.add(new MultipleLineLabel(s_stringMgr.getString("SessionObjectTreePropertiesPanel.filterNote")), gbc);

         ++gbc.gridy;
         pnl.add(createIncludeExcludePanel(), gbc);

      return pnl;
View Full Code Here

      GridBagConstraints gbc;

      gbc = new GridBagConstraints(0,0,1,1,1,1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(10,10,5,10), 0,0);
      // i18n[SessionStartupTimeHintDlg.text=This Session seems to take considerable time to load. You may configure Alias Schema Properties to improve startup performance.]
      getContentPane().add(new MultipleLineLabel(s_stringMgr.getString("SessionStartupTimeHintDlg.text")), gbc);

      gbc = new GridBagConstraints(0,1,1,1,0,0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5,10,5,10), 0,0);
      // i18n[SessionStartupTimeHintDlg.dontShowAgain=Don't show this message again]
      chkDontShowAgain = new JCheckBox(s_stringMgr.getString("SessionStartupTimeHintDlg.dontShowAgain"));
      getContentPane().add(chkDontShowAgain, gbc);
View Full Code Here

      ++gbc.gridy; // new line
      gbc.gridx = 0;
      gbc.gridwidth = GridBagConstraints.REMAINDER;
      String loadColsInBackgroundDescription = s_stringMgr.getString("SessionSQLPropertiesPanel.loadColsInBackgroundDescription");
      pnl.add(new MultipleLineLabel(loadColsInBackgroundDescription), gbc);

      gbc.insets = (Insets) defaultInsets.clone();
      gbc.insets.top = 0;

      ++gbc.gridy; // new line
      gbc.gridx = 0;
      gbc.gridwidth = GridBagConstraints.REMAINDER;
      pnl.add(_loadColumsInBackgroundChk, gbc);

      gbc.insets = defaultInsets;
      //
      /////////////////////////////////////////////


         if (null != _session)
         {
            TokenizerSessPropsInteractions tep = _session.getQueryTokenizer().getTokenizerSessPropsInteractions();

            if(   tep.isTokenizerDefinesRemoveMultiLineComment() ||
                  tep.isTokenizerDefinesStartOfLineComment() ||
                  tep.isTokenizerDefinesStatementSeparator())
            {
               ++gbc.gridy;
               gbc.gridwidth = 4;
               MultipleLineLabel lbl = new MultipleLineLabel(s_stringMgr.getString("SessionSQLPropertiesPanel.tokenizerNotEditableMsg"));
               lbl.setForeground(Color.red);
               pnl.add(lbl, gbc);

               gbc.gridwidth = 1;
            }
         }
View Full Code Here

      getContentPane().setLayout(new GridBagLayout());

      GridBagConstraints gbc;

      gbc = new GridBagConstraints(0,0,1,1,1,1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(10,10,5,10), 0,0);
      getContentPane().add(new MultipleLineLabel(s_stringMgr.getString("TabbedStyleHintDlg.text")), gbc);

      gbc = new GridBagConstraints(0,1,1,1,0,0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5,10,5,10), 0,0);
      chkDontShowAgain = new JCheckBox(s_stringMgr.getString("TabbedStyleHintDlg.dontShowAgain"));
      getContentPane().add(chkDontShowAgain, gbc);
View Full Code Here

  {
    final Box pnl = Box.createVerticalBox();
    pnl.add(new JSeparator());
    pnl.add(_descriptionLbl);
    pnl.add(new JSeparator());
    pnl.add(new MultipleLineLabel(i18n.INSTRUCTIONS));

    return pnl;
  }
View Full Code Here

   public Component getPanelComponent()
   {
      if(null == _propsPnl)
      {
         return new MultipleLineLabel(_errMsg);
      }
      else
      {
         return _propsPnl;
      }
View Full Code Here

      // Code completion and Syntax highlighting will work only for loaded schemas.
      // If Schemas take a long time to load you may cache them on your hard disk.
      // Then loading will take long only when you open a Session for the first time.
      // You can always refesh the cache either by using the Session's 'Refresh all' toolbar button
      // or by using the 'Refresh Item' right mouse menu on an Object tree node.]
      MultipleLineLabel lblHint = new MultipleLineLabel(s_stringMgr.getString("SchemaPropertiesPanel.hint"));
      gbc = new GridBagConstraints(0,0,1,1,0,0,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5), 0,0);
      add(lblHint, gbc);

      // i18n[SchemaPropertiesPanel.loadAllAndCacheNone=Load all Schemas, cache none]
      radLoadAllAndCacheNone = new JRadioButton(s_stringMgr.getString("SchemaPropertiesPanel.loadAllAndCacheNone"));
View Full Code Here

  private void addInfoPanel(final GridBagConstraints gbc)
  {
    gbc.weighty = 0;
    gbc.fill = GridBagConstraints.BOTH;

    MultipleLineLabel label = new MultipleLineLabel(i18n.INSTRUCTIONS);

    // Instructions
    final JPanel pnl = new JPanel();
    pnl.add(new MultipleLineLabel(i18n.INSTRUCTIONS));

    add(label, gbc);

  }
View Full Code Here

  }

  private Box createInfoPanel()
  {
    final Box pnl = new Box(BoxLayout.X_AXIS);
    pnl.add(new MultipleLineLabel(i18n.INSTRUCTIONS));
    return pnl;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.gui.MultipleLineLabel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.