How set the format of map scale(e.g. 1/2000) in the JTextField?

Hi, folks. My company buy a third party component, it contains a scale editor which is subclass of JTextField. However, I don't why this map scale editor allows people to entry number , ,alpha and space in it(it means every letter shown on the keyboard can be typed in the scale editor). My just want to know to how to set the certain format to let people to only type in the following format: 1/200000.
By the way, because it is part of the third party component, so all I can do is get the instance of the JTextField from the component and set the format to it.
Thanks in advance.

Hi, folks. My company buy a third party component, it contains a scale editor which is subclass of JTextField. However, I don't why this map scale editor allows people to entry number , ,alpha and space in it(it means every letter shown on the keyboard can be typed in the scale editor). My just want to know to how to set the certain format to let people to only type in the following format: 1/200000.
By the way, because it is part of the third party component, so all I can do is get the instance of the JTextField from the component and set the format to it.
Thanks in advance.

Similar Messages

  • How to copy FDM setting (import format, dimension mapping, control table)

    Dear All,
    How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
    I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
    Thanks your help

    If you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
    Sub MapExtractor()
    'UpStream WebLink Custom Script:
    'Created By:      SatyaK
    'Date Created:      12/08/09
    'Purpose: This Script will produce a Account Map File for
    '                         the current location.
    'Execute the export
    strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
    End Sub
    -------------

  • How set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when SD billing.

    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a SD billing.(VF01 credit memo)
    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a MM billing.(Miro  credit memo)
    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a FI billing.(FB65,FB75)
    Thank you very much.

    Hi,
    This has something to do with the payment terms of the invoice. When credit memos are created with reference to an invoice, there is a pattern of behaviour on how the field is updated. Similarly when the same is created without reference, the behaviour of this field is dfiferent.
    Look at the note 17410, it explains when is the field updated with V.
    As per this, when a credit memo is created with reference to an invoice, the invoice number is updated in this field and the payment term of the invoice will become the payment term of the credit memo also
    When CM. is created without invoice reference, it is updated with teh value V along with the payment terms in BSEG. In this case the credit memo is always due on the baseline date.

  • How set the FI Document's Invoice ref.(BSEG-REBZG) to 'V'  automatic.

    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a SD billing.(VF01 credit memo)
    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a MM billing.(Miro credit memo)
    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a FI billing.(FB65,FB75)
    Thank you very much.
    Can I customize in sap but exit?

    Hi,
    For general clarification, please refer:-
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=17410
    You can use userExit EXIT_SAPLV60B_002 which is part of Enhancement SDVFX002 (Transaction SMOD):-
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=301077
    Regards,
    Gaurav

  • How set the oracle 10g path in xp environment variables

    am new to java.
    am practicing the jdbc, but while running the program it compied, but it does not execute the program.
    it says
    package oracle.jdbc.driver does not exist
    DriverManager.getregister(new oracle.jdbc.driver.OracleDriver());
    then how to set the path of oracle 10g in xp environment variables.
    plz send any body the answer.
    its urgent.

    tster wrote:
    sunnyyld wrote:
    then how to set the path of oracle 10g in xp environment variables.right click on my computer -> properties -> advanced -> environment variables.
    Not that it would work, as the kid doesn't seem to understand what exactly it's doing wrong.
    Had it worked through some basic tutorials it would have understood so I'm not going to tell it, just tell it to work through some basic tutorials.

  • How set the values programatically in custom tables ?

    Hi Guru's,
    Please help me where i did mistake....
    My scenario is i have 4 columns that 4 columns are look up based on row i need save the "XX_hr_Vacancies_CompTab"
    4 columns look like....
    column1(15 questions ) column2(message choice) column3(message choice) column4(free text)
    (1-15)question manually select (1-10) manually select (1-10) comments
    this vo purpose i am using this query
    SELECT ROWNUM,
    xhv.VACANCY_ID
    , xhv.RFP_NO
    , hl.lookup_code
    , hl.meaning
    , XJCT.BUHR_RATING
    , XJCT.COMBEN_RATING
    , XJCT.RATIONALE
    FROM hr_lookups hl ,
    xx_hr_vacancies xhv,
    XX_JOBEVAL_COMP_TAB XJCT
    WHERE lookup_type = 'XX_JE_QUESTIONAIRE'
    AND xhv.RFP_NO = 'IRC616'
    AND XJCT.VACANCY_ID(+) = XHV.VACANCY_ID
    ORDER BY ROWNUM
    I am using sample code is for one column inserting.....please help where i am doing mistake.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createjobVacancy1");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("Save") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vacncyVO = (OAViewObject)am.findViewObject("XXTableLookupVO1");
    int fetchedrowcount = vacncyVO.getRowCount();
    RowSetIterator multiIter;
    multiIter = vacncyVO.createRowSetIterator("VacancyId");//Attribite of the select box
    multiIter.setRangeStart(0);
    multiIter.setRangeSize(fetchedrowcount);
    System.out.println("no before for loop condition rows"+fetchedrowcount);
    for(int i=0;i<fetchedrowcount;i++)
    am.invokeMethod("createjobVacancy1");
    OAViewObject vacncyVO1 =
    (OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
    Object vacancy = vacncyVO.getRowAtRangeIndex(i).getAttribute("VacancyId"); */*63 Line code is this one*/*
    System.out.println("vacancy number is in table region current row is "+vacancy);
    System.out.println("no or rows"+fetchedrowcount);
    if(vacancy != null && !"".equals("vacancy"))
    vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancy);
    System.out.println("set create vacancy number is in table region current row is "+vacancy);
    }else{
    vacncyVO1.getCurrentRow().setAttribute("VacancyId",null);
    am.invokeMethod("apply1");
    System.out.println("out of for loop :"+fetchedrowcount);
    Sop:
    13/01/10 06:55:28 no before for loop condition rows15
    13/01/10 06:55:29 Header is =725
    13/01/10 06:55:30 vacancy number is in table region current row is 616
    13/01/10 06:55:30 no or rows15
    13/01/10 06:55:30 set create vacancy number is in table region current row is 616
    13/01/10 06:55:30 Header is =726
    Error:
    ## Detail 0 ##
    java.lang.NullPointerException
    at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:63)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
    Regards,
    Srinivas

    Thanks Keerthi,
    i am getting values but i unable to set the values, once i am setting values i am facing null pointer exception ..
    java.lang.NullPointerException
         at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:86)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
    i am using below coding in PFR
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("Save") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject oaviewobject =(OAViewObject)am.findViewObject("XXTableLookupVO1");
    if(oaviewobject!=null)
    pageContext.writeDiagnostics(this,"View Object is exists",OAFwkConstants.STATEMENT);
    int rowcountValue = oaviewobject.getRowCount();
    pageContext.writeDiagnostics(this,"Row returned by the View Object"+rowcountValue,OAFwkConstants.STATEMENT);
    System.out.println("before for loop geting values = "+rowcountValue);
    Row rowAdv= oaviewobject.first();
    RowSetIterator iterator = oaviewobject.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(oaviewobject.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    pageContext.writeDiagnostics(this,"Inside For loop ",OAFwkConstants.STATEMENT);
    rowAdv =iterator.getRowAtRangeIndex(i);
    if(rowAdv != null)
    pageContext.writeDiagnostics(this,"flag not null",OAFwkConstants.STATEMENT);
    pageContext.writeDiagnostics(this,"Flag Value Checked as Y",OAFwkConstants.STATEMENT);
    OAViewObject vacncyVO1 =
    (OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
    if(rowAdv.getAttribute("VacancyId")!=null)
    Object vacancyname = rowAdv.getAttribute("VacancyId").toString();
    vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancyname); This is the 86 line
    System.out.println("Vacancy ID IS = "+vacancyname);
    System.out.println("Vacancy ID IS = "+rowAdv);
    am.invokeMethod("apply1");
    // System.out.println("out of for loop :"+iterator);
    please help me where i am doing mistake...
    Regards,
    Srinivas

  • Personas: How set the default screen size when Personas starts up

    Hi Personas experts,
    When Personas starts, its screen size is by default small, say, size_A. One can press "+" to increase the screen size, say, size_B.
    Now I want Personas to start with a bigger screen size, say, size_B instead of the default size, size_A. Does anyone know how to do this? Thanks.
    Br,
    Dong

    Hi Dong,
    There is a minor tweak you have to do in your index.html file. Or I advise you copy the index.html file into a new file and run personas using it.
    The tweak in the 40th line where you have the script. Just add          switchPersonasObjectFullScreen();
      <script type="text/javascript">
             setPersonasObjectSize(1);
             switchPersonasObjectFullScreen();        <!-- Add this here -->
             trySetPersonasObjectSizeFromUrlParameters();
           disableBrowserHelp();
         </script>
         </body>
    Save . Activate and Run Personas using this file. It will open personas in Full Screen Mode within the browser window.
    I hope this tweak helps.
    Regards,
    Manu

  • NB100 - How set the screen brightness?

    Hi all.
    Just bought an NB100 - overall very very pleased with it. Well built, good screen and very compact etc.
    Got a couple of questions? The screen brightness is controlled by Fn+F9/F10. I like to have it set to "halfway" or less - partly to preserve battery - but also because I find max brightness is actually TOO bright for me! But on reboot the machine seems to always start at maximum again. Is there any way round this? Does it perhaps need a firmware update (my machine seems to be running version 1.90 which I believe is the latest)?
    I noticed other threads mentioning Fn + F8 as a means of selecting Bluetooth/Wlan etc? Mine seems to just control the fan setting and processor speed - The "grey" fan setting gives 1.6ghz and the fan comes on - whereas Fn+F8 toggles a "white" fan icon - where the processor throttles down to 800/900 ish and the fan slows/stops(?). [in passing I've noticed some videos become "jerky" if the lower setting is chosen]
    I'm not 100% sure what Fn+ "pipe" key does (to the left of F1)? The Fn+F1 switches on wireless/wifi I know - but the "pipe" key seems to be a Wlan symbol (or is that the key to use for Bluetooth or GPS or whatever)? Sorry to sound so ignorant - but the user guide doesnt go into that much detail. I'm fairly sure the machine I bought - which was a Toshiba Refurbished/Reconditioned NB100 - model PLL10E - hasnt got any BT/GPS etc - just the basic wifi which F1 switches on and off.
    Final comment - and others have said this - the key tops are very difficult to see in low light!! The "grey" colour was definitely a design mistake! But I can live with it - either a usb light? or some stickon (white) letters?
    Regards to all.

    hi, i think the best way to set brightness is in options of energy properties accessible in system tray icon. I know about bt and wlan activation, it seem that bt and wlan dispositives are on the same circuit on/off, so not indipendents. Nb100 is a good inexspansive machine :)

  • Perl SAP::Rfc: how sets the export parameters correctly?

    Hi,
    we use SAP::RFC with Perl to read out some user details. We have a problem
    of reading the export parameter structure "address".
    Here is an example:
    #!/usr/bin/perl
    use strict;
    use SAP::Rfc;
    use Data::Dumper;
    my $rfc = new SAP::Rfc(
                ASHOST => ... );
    my $iface = $rfc->discover( "BAPI_USER_GET_DETAIL" );
    my $user = "TEST";
    $iface->USERNAME( $user );
    my $lastname = $iface->ADDRESS->{'LASTNAME'};
    print "lastname : $lastname\n";
    $rfc->callrfc( $iface );
    $rfc->close();
    Nothing is saved in the field "lastname". Can anybody help us?
    Thanks
    Helmut

    Answer is pure assumption
    Pls check this link, you may get a idea
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c98bea06-0b01-0010-78bd-8592433ff6f2
    Regards
    Madhan D

  • How to set the size of printing subject

    I have a deskjet 3520 all in one and my computer is a laptop dv6 with windows7 prof. 64bit.
    I want to print out PCB traces so that I can make my own but I don't know to how set the size
    with this printer. They take up the whole page when I want them to be 2.35x3.35.
    Don't know if this can be done with this printer.
    Any help would be apreciated.
    This question was solved.
    View Solution.

    Can you post a link to a sample, or upload here a sample?  That would make it easier to debug what is going on.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How set properties in liquid lAf

    hi thanx for the help .it is really working.but i would like to know the how set the properties in the this lnf .i would like to change the color and various properties .
    plz do the needful

    Hi,
    why do you use the print-tag in your setProperty-Tag.
    Try it without <%=tempStr%>.
    Try <%tempStr%>
    or only tempStr.

  • How to set minimum and maximum X scale in the XY graph if i have a X scale time format ?

    Hi,
    i choose in the picture enclosed, a time format for the X scale of the XY Graph.
    The problem is that i am not able to set the minimum and maximum of the X scale: In fact the property nodes of the minimum and maxinum X scales ask for  double as input.
    But i need to set my minimum and maximum X scale to be a time (because I already set the X scale format to a time)
    Could u help me please ?
    Samer,
    Attachments:
    scale.JPG ‏8 KB

    please i have another problem:
    i put the XY Graph in a while loop with maximum and minimum Xscale as property nodes inputs.
    The problem is that when i make a zoom  i can just see the zoom for a little while and then (because of the while loop) the Xscale is updated.
    is there a method so that the Xscale be updated just when i change its value ?
    or Could u tell me how could i zoom properly ?
    Samer,
    Attachments:
    zoom.JPG ‏11 KB

  • How to set JTextField to show certain map scale (e.g. 1/2000)

    Hi,folks. I have a JTextField instance. How can I set the format to only allow user to only type the map scale(e.g. 1/2000). I can only use the JTextField component. Thank you in advance.

    I think the regex you're looking for is"1/[1-9]\\d*"Note that in the regex you posted"1[\\]\\d*"the closing bracket is quoted by the backslash, causing the error you mentioned. Not that you needed a backslash there anyways.
    You can try this, but note that since replace(...) invokes remove(...) and replace(...), pasting an apparently valid String will not succeed if the slash is part of the replacement. Also that setText or pasting are the only ways to set the initial content as you won't be able to type it in one character at a time.import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.PlainDocument;
    public class ScaleFactorTextField {
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new ScaleFactorTextField().makeUI();
       public void makeUI() {
          JTextField textField = new JTextField(10);
          textField.setDocument(new PlainDocument() {
             final Pattern p = Pattern.compile("1/[1-9]\\d*");
             @Override
             public void insertString(int offs, String str, AttributeSet a)
                   throws BadLocationException {
                String newText = getText(0, offs) + str +
                      getText(offs, getLength() - offs);
                if (isValidText(newText)) {
                   super.insertString(offs, str, a);
             @Override
             public void remove(int offs, int len) throws BadLocationException {
                String newText = getText(0, offs) +
                      getText(offs + len, getLength() - offs - len);
                if (isValidText(newText)) {
                   super.remove(offs, len);
             @Override
             public void replace(int offs, int len, String text,
                   AttributeSet attrs) throws BadLocationException {
                String newText = getText(0, offs) + text +
                      getText(offs + len, getLength() - offs - len);
                if (isValidText(newText)) {
                   super.replace(offs, len, text, attrs);
             private boolean isValidText(String text) {
                Matcher m = p.matcher(text);
                return m.matches();
          textField.setText("1/20000");
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.add(textField);
          frame.pack();
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
    }db

  • How do I get the Measurement scale to stay set in Adobe Acrobat IX Pro. It's easy to set the scale , but when you exit out of the commend

    How do I get the Measurement scale to stay set in Adobe Acrobat IX Pro. It's easy to set the scale , but when you exit out of the commend the scale is reset to 1 = 1.

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • I would like to programatically set the "Date Unused" on X Scale formatting for time plots.

    I can use the X Scale formatting on the front panel, but when I change from time to decimal using property nodes the "date" keeps showing up. How can I turn the date feature off so I just see Time in HH:MMS format?

    Disregard. I found the answer. Set the XScale.Format value to 6 (relative Time). feed in total seconds from start of day to the Xo, The reciprocal of data frequency to DeltaX, and set the decimal resolution to 3. This results in a time tagged plot showing just time (no Date).

Maybe you are looking for

  • How to keep the field value in the forms for one week

    I have an application that when the user logs on to it , it shows all the documents that are in the current dept. the form has the following fields: document no sent date assigned to dep_LOV and a check box if a user clicks the check box and assignes

  • MERGE using nested table doesn't work on Oracle 9i

    Hi, Oracle 9i Enterprise Edition Release 9.2.0.4.0 on Red hat Linux SQL> create table PERSONS (   2    ID  number(9)   3   ,SURNAME  varchar2(50)   4   ,constraint PERSONS_PK primary key (ID)   5  ); Table created. SQL> create or replace type T_NUMBE

  • Getting previous month

    could you please tell me how to get previous month? using sysdate gives me current date. from that i can get current month using to_char function. But how can I get the previous month?

  • Processor out of memory restart phone to reset

    When I use the camera or scanner app the phone will revert back to the home screen and a message appears that says the processor is out of memory, restart phone to reset? Can the processor memory be cleared by restarting and if so, how is the phone '

  • SCCM 2012 R2 CU1 to CU5?

    Hi, We're running SCCM 2012 R2 CU1 now. I wonder what the biggest advantages/reasons would be to upgrade to CU5 (have read some of the release notes but am curious what your opinon is on this topic). J. Jan Hoedt