Examples of HelpedTextField


Examples of nu.lazy8.util.help.HelpedTextField

    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

Examples of nu.lazy8.util.help.HelpedTextField

    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

Examples of nu.lazy8.util.help.HelpedTextField

    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

Examples of nu.lazy8.util.help.HelpedTextField

    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
TOP
Copyright © 2018 www.massapi.com. 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.