Package nu.lazy8.util.help

Examples of nu.lazy8.util.help.HelpedTextField


        "Number", "customer", view);
    textField1 = new IntegerField("Number", "customer", view);
    textField1.setText(sAccountNum);
    label2 = new HelpedLabel(Translator.getTranslation("Customer name"),
        "Name", "customer", view);
    textField2 = new HelpedTextField("Name", "customer", view);
    label3 = new HelpedLabel(Translator.getTranslation("Customer description"),
        "Description", "customer", view);
    textField3 = new HelpedTextField("Description", "customer", view);
    JPanel jPanel22 = new JPanel();
    jPanel22.setLayout(new BoxLayout(jPanel22, BoxLayout.Y_AXIS));

    jPanel1.setLayout(new GridLayout(5, 2));
View Full Code Here


    JPanel jptitles = new JPanel();
    jptitles.setLayout(new GridLayout(4, 2));
    jptitles.add(new HelpedLabel(Translator.getTranslation("Diagram title"),
        "title", "graphics", view));
    jtextTitle = new HelpedTextField("title", "graphics", view);
    jptitles.add(jtextTitle);

    jptitles.add(new HelpedLabel(Translator.getTranslation("X axis title"),
        "titlex", "graphics", view));
    jtextTitleX = new HelpedTextField("titlex", "graphics", view);
    jptitles.add(jtextTitleX);

    jptitles.add(new HelpedLabel(Translator.getTranslation("Y axis title"),
        "titley", "graphics", view));
    jtextTitleY = new HelpedTextField("titley", "graphics", view);
    jptitles.add(jtextTitleY);

    JButton butsearch = new HelpedButton(Translator.getTranslation("Find background image"),
        "findimage", "graphics", view);

    butsearch.addActionListener(
      new java.awt.event.ActionListener() {
        //{{{ +actionPerformed(java.awt.event.ActionEvent) : void
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          //Get file name
          JFileChooser fileDialog = new JFileChooser();
          javax.swing.filechooser.FileFilter filter =
            new javax.swing.filechooser.FileFilter() {
              //{{{ +accept(File) : boolean
              public boolean accept(File f) {
                if (f.isDirectory()) {
                  return true;
                  //this allows navigation in the file system
                }
                String extension = SieExport.getExtension(f);
                if (extension != null) {
                  if (extension.equals("jpg")
                       || extension.equals("jpeg")
                       || extension.equals("gif")
                       || extension.equals("png")
                      ) {
                    return true;
                  } else {
                    return false;
                  }
                }
                return false;
              }//}}}


              //{{{ +getDescription() : String
              public String getDescription() {
                return Translator.getTranslation("JPEG,JPG,PNG or GIF image");
              }//}}}
            };
          fileDialog.setFileFilter(filter);
          if (fileDialog.showOpenDialog(null) ==
              JFileChooser.APPROVE_OPTION) {
            textBackgroundFile.setText(fileDialog.getSelectedFile().getPath());
          }
        }//}}}
      }
        );
    jptitles.add(butsearch);
    textBackgroundFile = new HelpedTextField("findimage", "graphics", view);
    jptitles.add(textBackgroundFile);

    jp5.add(jptitles);
    whatsShowing.add(jp5, BorderLayout.NORTH);
View Full Code Here

    JPanel jPanel1 = new JPanel();

    jPanel1.setLayout(new BoxLayout(jPanel1, BoxLayout.X_AXIS));
    //these next 3 are unused but needed for compatibility
    jTextField3 = new HelpedTextField("ReportTitle", "allreports", view);
    jTextField4 = new HelpedTextField("headerimage", "allreports", view);
    cc = new CompanyComponents(new JPanel(), Translator.getTranslation("Company"), false, helpfile, view);

    JPanel jPanel4 = new JPanel();
    jPanel4.setLayout(new GridLayout(6, 2));
    jPanel1.add(jPanel4);
View Full Code Here

    AddDateComponents(jp, helpFile);
    resetDate((java.util.Date) cc.comboBoxPeriod.getSelectedItemsKey(),
        (java.util.Date) cc.comboBoxPeriod.getSelectedItemsSecondaryKey());

    jp.add(new HelpedLabel(Translator.getTranslation("Report title"), "ReportTitle", helpfile, view));
    jTextField3 = new HelpedTextField("ReportTitle", helpfile, view);
    jTextField3.setText(SetupInfo.getProperty(sReportTitle));
    jp.add(jTextField3);

    jp.add(new HelpedLabel(Translator.getTranslation("Report header image"), "headerimage", helpfile, view));
    JPanel jpImage = new JPanel();
    jpImage.setLayout(new BoxLayout(jpImage, BoxLayout.X_AXIS));
    jTextField4 = new HelpedTextField("headerimage", helpfile, view);
    jpImage.add(jTextField4);
    jTextField4.setText(SetupInfo.getProperty(SetupInfo.REPORTIMAGE));

    JButton browse = new HelpedButton(Translator.getTranslation("Browse"),
        "headerimage", helpfile, view);
View Full Code Here

    jpFont.add(reportFont, BorderLayout.CENTER);
    addComponent(jpFont);

    menuButtonLevels = new JRadioButton[NUM_MENU_LEVELS];
    addComponent(createMenuSelectionPanel(menuButtonLevels, view));
    textField5 = new HelpedTextField("WordProcesser", "setup", view);

    JButton butLang = new HelpedButton(Translator.getTranslation("Default language"),
        "Languages", "setup", view);
    addComponent(butLang);
    butLang.addActionListener(
View Full Code Here

   */
  public void getSpecialGuiPane(JPanel jPanel1) {
    AddDateComponents(jPanel1, "allreports");
    jPanel1.add(new HelpedLabel(Translator.getTranslation("Start Transaction number"),
        "Start", "allreports", view));
    intField1 = new IntegerField("Start", "allreports", view);
    jPanel1.add(intField1);
    jPanel1.add(new HelpedLabel(Translator.getTranslation("Stop Transaction number"),
        "Stop", "allreports", view));
    intField2 = new IntegerField("Stop", "allreports", view);
    jPanel1.add(intField2);
  }//}}}
View Full Code Here

    //    JLabel emptySpace=new JLabel();
    //    jPanel1.add(emptySpace);

    label1 = new HelpedLabel(Translator.getTranslation("Account number"),
        "number", "account", view);
    textField1 = new IntegerField("number", "account", view);
    textField1.setText(sAccountNum);
    label2 = new HelpedLabel(Translator.getTranslation("Account name"),
        "name", "account", view);
    textField2 = new HelpedTextField("name", "account", view);
View Full Code Here

    wasWriteOk = false;
    jPanel1 = new JPanel();

    label1 = new HelpedLabel(Translator.getTranslation("AccTypeId"),
        "Number", "accounttype", view);
    textField1 = new IntegerField("Number", "accounttype", view);
    textField1.setEnabled(false);

    label2 = new HelpedLabel(Translator.getTranslation("Account type name"),
        "Name", "accounttype", view);
    textField2 = new HelpedTextField("Name", "accounttype", view);
    label3 = new HelpedLabel(Translator.getTranslation("Sorting order for reports"),
        "Sort", "accounttype", view);
    textField3 = new IntegerField("Sort", "accounttype", view);
    JPanel jPanel22 = new JPanel();
    jPanel22.setLayout(new BoxLayout(jPanel22, BoxLayout.Y_AXIS));

    jPanel1.setLayout(new GridLayout(5, 2));
View Full Code Here

     */
    jPanel1 = new JPanel();

    label1 = new HelpedLabel(Translator.getTranslation("CompId"),
        "Number", "company", view);
    textField1 = new IntegerField("Number", "company", view);
    label2 = new HelpedLabel(Translator.getTranslation("Company name"),
        "Name", "company", view);
    textField2 = new HelpedTextField("Name", "company", view);
    JPanel jPanel22 = new JPanel();
    jPanel22.setLayout(new BoxLayout(jPanel22, BoxLayout.Y_AXIS));
View Full Code Here

    getContentPane().add(ps, BorderLayout.CENTER);
    m_monitor.setText("");
    m_monitor.replaceSelection(Translator.getTranslation("Enter the name of your company and any four digit number that will represent your company.") + "\n" +
        Translator.getTranslation("Press NEXT to continue."));

    textField1 = new IntegerField("Number", "company", frameParent);
    textField2 = new HelpedTextField("Name", "company", frameParent);

    rightButton = new JButton(Translator.getTranslation("Next"));

    rightButton.addActionListener(
View Full Code Here

TOP

Related Classes of nu.lazy8.util.help.HelpedTextField

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.