SetEnabled to false for a JSpinner

hi all,
I've got a little problem that I hope someone can solve for me.
I'm trying to setEnabled() to false for my JSpinners, at run time, even though it is set to false, the JSpinner is still enabled and allows editing.
Is this because JSpinners doesn't allow it to be disabled, or I have done something fatally wrong?
Here is a snipet of my code.
SpinnerNumberModel spinDays = new SpinnerNumberModel(days,0,30,1);
spinnerDays = new JSpinner(spinDays);
spinnerDays.addChangeListener(new ChangeListener(){
     public void stateChanged(ChangeEvent e){
     setSpinnerDays();     
spinnerDays.setEnabled(false);
Gabriel.

This bug has been fixed in JDK1.4 beta 2. Download the latest version.
Cheers,
Joris
http://www.esus.com

Similar Messages

  • [svn:osmf:] 14823: Fix bug where canPause was not set to false for live streams.

    Revision: 14823
    Revision: 14823
    Author:   [email protected]
    Date:     2010-03-17 10:51:40 -0700 (Wed, 17 Mar 2010)
    Log Message:
    Fix bug where canPause was not set to false for live streams.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestVideoElement.as

    Thanks for looking at this post. We have resolved the issue for ourselves by working with our DBAs to narrow down where the problem actually started. We found that the particular SQL we were looking at was not the issue. In a chart on a subsequent page (via a click through), we were actually running into where apex was starting to consuming memory but we were catching it later.
    What we found was that when we had a chart query that was SQL containing a pipeline function, the memory usage went up. And within 10 minutes, the server would crawl to a halt. To release the memory, the DBAs would have to bounce the Apex instance. When I changed the query to be a function returning SQL, the problem stopped. I don't know what the correlation was between SQL and moving to a PL/SQL function returning SQL.
    I am not even 100% positive of the pipeline function being the cause. I only know that this started happening about the same time as when I implemented the pipeline function. I understand you are leery of a one-second function/query running up that kind of utilization. No one here believed me either (including me really). We figured it HAD to be a coincidence. But once I changed the query from SQL to a function returning PL/SQL, our problem went away.
    Thanks to all who looked at and thought about this.
    Walter

  • How to set render false for OALink Bean

    Hi friends,
    is it possible to set render false for OALinkBean.
    i am using the following code but it is not working
    OALinkBean LinkBean = (OALinkBean)webBean.findChildRecursive("subTabLinkThree");
    if(projectType.equals("XYZ"))
    LinkBean.setRendered(false);
    }

    previously i was using this code for hiding the subtablink but this code was not working
    OALinkBean LinkBean = (OALinkBean)webBean.findChildRecursive("subTabLinkThree");
    LinkBean.setRendered(false);
    but now i am using following code and this code is working fine
    OASubTabLayoutBean subTab = (OASubTabLayoutBean)webBean.findChildRecursive("subTabLayoutRN");
    if(subTab != null)
    subTab.hideSubTab(2,true);
    }

  • How to make resizable false for JcomboBox

    hi ,
    I am using JCombobox , but it resizes when length of data inside it is
    increses.I am in trouble because of that.
    Would anybody how to make resizable false for Jcombobox
    --Harish                                                                                                                                                                                                                                                                                                                                                                                   

    Set a preferred size on the combo box, e.g.
    box.setPreferredSize(new Dimension(150,box.getPreferredSize().height));

  • [svn:osmf:] 11403: Fix 10. 1 compilation condition to be false for AIR-based unit tests.

    Revision: 11403
    Author:   [email protected]
    Date:     2009-11-03 08:57:18 -0800 (Tue, 03 Nov 2009)
    Log Message:
    Fix 10.1 compilation condition to be false for AIR-based unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkAirTest/.actionScriptProperties

    Revision: 11403
    Author:   [email protected]
    Date:     2009-11-03 08:57:18 -0800 (Tue, 03 Nov 2009)
    Log Message:
    Fix 10.1 compilation condition to be false for AIR-based unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkAirTest/.actionScriptProperties

  • Admin Personalization to False for the item

    Using Note 236618.1 - OA Framework Personalization and Extensibility Guide: Version 5.7+
    for personalization of OA Framework and the following question has arisen:
    I inadvertenly set the Admin Personalization to False for the item "Header: Discount Alerts" while attempting to figure out how to hide an item. The result of this is that I am no longer able to edit this item (i.e., the pencil icon is no longer available from the Personalizations page).
    Because I cannot edit the item now, I am unable to set it back to the way it was (i.e, Admin Personalizations 'Inherit').
    Is there a way I can set it back to the way it was ?

    Omit,
    If you meant how to delete the personalization you have done, back to original form, you use Functional Administrator and use the page name to enter in to the personalization tool to delete it. You can also delete the personalization from db directly by using
    exec jdr_utils.listCustomizations('<page_name>')
    this will list the set of customizations that you have done, pick the appropriate personalization document and use
    exec jdr_utils.deleteDocument('...');
    commit;
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I want to render false for a Item in one Sub menu only

    Hi all,
    I have a page which is been used in four submenu under the same responsibility.
    in this page now i want to hide an item for only one submenu
    When i am trying to set the render property as false at any level(that is personalization at site level ,or OU level or Respnsibility level)is getting rendered false for all the Submenus.
    Could you please let me know how can i hide this for only one sub menu.
    Thanks
    Ajay

    Hi ,
    requirement is bit tricky ,but i think there will be some value on the page which will identify that page has been rendered under which sub menu ,u need to identify that value and then need to extend the controller and set it render false conditionally based on the identified value in PR method of controller.
    thanks
    Pratap

  • BubbleChecker  show  false  for matrix on  AfterChooseFromList event

    Hi expert,
    i have UDO form with a text field and matrix .Added CFL in both field  .Bubblechecker tools  show
    true for text  field and false(error)  for matrix column .please  help why bubblechecker tools  show false only for matrix CFL.
    [B1Listener(BoEventTypes.et_CHOOSE_FROM_LIST, false, new string[] {
                        "SBOeConnectUDO"})]
            public virtual void OnAfterChooseFromList(ItemEvent pVal)
                bool ActionSuccess = pVal.ActionSuccess;
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // ADD YOUR ACTION CODE HERE ...
                EditText ET_itmcd = (EditText)form.Items.Item("ET_itmcd").Specific;
                IChooseFromListEvent oCFLEvent = (IChooseFromListEvent)pVal;
                if (oCFLEvent.BeforeAction == false && oCFLEvent.SelectedObjects != null)
    //for text field
    DataTable oDataTable = null;
                            oDataTable = oCFLEvent.SelectedObjects;
                            DBDataSource oDBDataSource = null;
                            oDBDataSource = form.DataSources.DBDataSources.Item("OITB");
                            oDBDataSource.SetValue("ItmsGrpNam", pVal.Row, System.Convert.ToString(oDataTable.GetValue(1, 0)));
    ///for matrix code
    if (oCFLEvent.ChooseFromListUID == "CFL_web")
                        try
                            Matrix oMatrix_web = (Matrix)form.Items.Item("mtx1").Specific;
                            DBDataSource oDBDataSource = (DBDataSource)form.DataSources.DBDataSources.Item("@Table1");
                            DataTable oDataTable = null;
                            oDataTable = oCFLEvent.SelectedObjects;
                            if (form.Mode == BoFormMode.fm_ADD_MODE | form.Mode == BoFormMode.fm_OK_MODE | form.Mode == BoFormMode.fm_UPDATE_MODE)
                                if (pVal.Row == oMatrix_web.RowCount)
                                    oDBDataSource.SetValue("LineId", oDBDataSource.Size - 1, null);
                                    oDBDataSource.SetValue("U_SitCd", oDBDataSource.Size - 1, null);
                                    oDBDataSource.SetValue("U_SitNam", oDBDataSource.Size - 1, null);
                                    oDBDataSource.InsertRecord(oDBDataSource.Size - 1);
                            oDBDataSource.SetValue("U_SitCd", pVal.Row - 1, System.Convert.ToString(oDataTable.GetValue("U_Code", 0)));
                            oDBDataSource.SetValue("U_SitNam", pVal.Row - 1, System.Convert.ToString(oDataTable.GetValue("U_Name", 0)));
                            oMatrix_web.LoadFromDataSource();
                        catch (Exception ex)
                            B1Connections.theAppl.SetStatusBarMessage(ex.Message, BoMessageTime.bmt_Medium, false);

    It's already a reported issue: Resize of grid controls
    A fix is due to be made in PL07 according to the note references in that thread: https://websmp130.sap-ag.de/sap/support/notes/1610013
    Also I think you got hit by a network issue and posted the thread twice

  • File.exists() returns false for existing file, help :)

    Hi all,
    I'm having the STRANGEST behavior... I'm working on a simple DNS management system, and before I overwrite a zone file, I want to check if it exists... but exists() is returning false even when the file exists.
    Here is my code snippet:
    finest( "Checking the existance of "+filename ) ;
    File zoneFile = new File( filename ) ;
    if ( zoneFile.exists() ) {
        finest( "Zone File "+zoneFile+" already exists." ) ;
        throw( new ZoneFileExistsException( fqdn ) ) ;
    else {
        finest( "Creating Zone File "+zoneFile ) ;
        ...It's producing this in the log (I cut off the timestamp parts):
    Checking the existance of /opt/DNS/db.testingbutler222.com
    Creating Zone File /opt/DNS/db.testingbutler222.com
    but...
    # ls -l /opt/DNS/db.testingbutler222.com
    -rw-r--r-- 1 root other 733 Aug 27 19:23 /opt/DNS/db.testingbutler222.com
    So... as you can see, the file CLEARLY exists... what the heck am I doing wrong or misunderstanding? This can't really be a bug in File, can it?
    Kenny Smith

    Hi,
    Thanks for your response, but as I showed in my first post, I'm using absolute paths. My log file contains this:
    Checking the existance of /opt/DNS/db.testbutler222.com...
    Existance of /opt/DNS/db.testbutler222.com=false
    # ls -l /opt/DNS/db.testbutler222.com
    -rw-r--r-- 1 root other 695 Aug 29 12:17 /opt/DNS/db.testbutler222.com
    I don't understand what is happening... I wrote a separate class that just tests the existance of a file, and that one is reporting the existance correctly.... (the source code is found in the second post above) I don't understand why my servlet code can see the file.
    I have jakarta-tomcat running as root, and the file I'm checking was created by the same servlet. I've double checked permissions and such, just to make sure it wasn't that.. but it's still not working.
    I even added code to create a FileReader from the file, that way if it throws a FileNotFoundException, I would know the file doesn't exist... and even though the file does exist, it throws the exception. :(
    Kenny

  • Display Yes / No instead of True or false for radio buttons in SSRS 2008R2

    Hi All,
    I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as
    YES instead of True and NO for False beside radio buttons?
    Thanks,
    RH
    sql

    Hi sql9,
    According to your description, you want to show "Yes" and "No" in Boolean parameter instead of "True" and "False". Right?
    In Reporting Services, it doesn't has any property for the text of radio button in a Boolean parameter. So we can't modify the "True" and "False" into "Yes" and "No". For your requirement, a workaround is changing the type into drop down
    list and put the "Yes" and "No" into values.
    Reference:
    SSRS boolean
    parameter Yes and NO instead of True and False in prompt area
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Set generate flag to false for index, but index will still be created

    I found that the generate flag for index will now be stored correct, even I close and reopen th ephysical model.
    However, even i set the generate flag for an index to false, the DDL for the index will be generated. Any workaround?
    Additional hint:
    * The flag is considered if no physical model is opened.
    * To not open the physical model is no workaround because if the physical model is not opened, no sequences will be generated.
    Thanks in advance,
    Frank
    3.0.0.665 on Windows XP
    Edited by: puchtec on 16.02.2011 05:55

    Hi David,
    thanks for your answer. However, I do not see that this is a practicable workaround for me.
    Let me explain.
    * I have table A with a foreign key on column X to table B.
    * I have set that data modeler should create missing indexes for foreign keys (preference/data modeler: automatic index generation for foreign key constraints enabled)
    * If I generate DDL, I will get the missing index generated by data modeler (index name ends with FKX). That's fine.
    * But, now I have a combined index of column X and column Y on table a. this index would make the automatically generated index needless - because it is already covered by the combined index.
    * To avoid generating the needless index, I design an index on column X and set the flag for generation to false.
    * If I have designed the index on column X, data modeler does not generate the missing index. However, the needless index will be generated even the flag is set to false.
    Of course I can exclude the index from the generation in the generations dialog, but from my point of view I already decided not to generate the index in the relational model. In case the physical model has not been opened, the indexes having generate equals to false are excluded from the generation (could also be seen in generation dialog).
    Cheers,
    Frank

  • DataLine isRunning() always returns false for mp3 files

    Running JDK 1.5.0-b64 on Win 2K and XP. Using the sun mp3 plug-in. Everything works except the DataLine.isRunning() method always returns false.
    For other file types (e.g. WAV) isRunning() returns true/false values as you might expect.
    Anybody else have this experience? It seems like a bug to me.
    Thank you.

    Running JDK 1.5.0-b64 on Win 2K and XP. Using the sun mp3 plug-in. Everything works except the DataLine.isRunning() method always returns false.
    For other file types (e.g. WAV) isRunning() returns true/false values as you might expect.
    Anybody else have this experience? It seems like a bug to me.
    Thank you.

  • Settin singleton property false for child node but entire column populated

    hai all,
           I have set the singleton property of child node as false but still in my wdmodifyview when i load a value help with values from backend based on the user selection in 1st column of table the entire column gets populated.
    coding used by me:
    public static void wdDoModifyView(IPrivateSalesdet wdThis, IPrivateSalesdet.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
       try
       String partfn=wdContext.currentTablepartnersElement().getPartnerfn();
         if(partfn.equals("ShiptoParty"))
    IWDAttributeInfo partattributeInfo=wdContext.nodeTablepartners().nodeTablepartnerssubnode().getNodeInfo().getAttribute(IPrivateSalesdet.ITablepartnerssubnodeElement.PARTNERS);
    ISimpleTypeModifiable part  = partattributeInfo.getModifiableSimpleType();
          //     Set field label and populate valueset
      part.setFieldLabel("key");
    IModifiableSimpleValueSet partvalueSet =  part.getSVServices().getModifiableSimpleValueSet();     
      for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().size();i++)
    partvalueSet.put(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr(),wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getName1());
    I need to populate only the table cell wch is next to the cell in wch user has made a selection  and not the entire column.plz help me in this issue.

    First, you should not place this code in wdDoModifyView().
    Second, I assume you want to have a value help only on a specific table cell, not for all cells in the same column, is that correct?
    This cannot be done by modification of the DDIC type because the type is used for all cells of a column. This has nothing to do with singleton vs. non-singleton.
    What exactly is your use case?
    Armin

  • Expand=false for Tree view control

    Hi 
    I have a placed a tree view control on SharePoint 2010 master page  and given sitemap as a datasource.
    and my tree view is displaying all the links from sitemap file.
    But here the problem is all the node are getting expanded.
    Is there any way to disable that.

    Assuming you are using SPTreeview control you can set ExpandDepth property. This property gets or sets the number of levels that are expanded when a TreeView control is displayed for the first time.
    Example: http://msdn.microsoft.com/en-us/library/ms466994(v=office.14).aspx
    Amit

  • Setting hyphenateAcrossColumns to false for a textFrame

    Hi Everyone,
    I only started writing scripts for InDesign yesterday and so I am still getting my head around everything.
    I have created a textFrame like so:
    var myTextFrame = myDocument.pages.item(0).textFrames.add();
    and now, just like when using the UI in InDesign where you can go to the 'Paragraph' panel and uncheck the 'hyphenate' box. I want to do this in the script for this textFrame.
    Thanks in advanced for your help.

    You can't apply a paragraph style to a text frame, only to the text of the frame or the parent story of the frame or the last insertion point of the frame or the third word of the fourth paragraph of the frame.
    appliedParagraphStyle is a text property so it can only be applied to text.
    Don't be confused by UI shortcuts. The UI is (like) a huge script that does fancy stuff. You have to work with the basic functionality and make your own fancy stuff.
    Dave

Maybe you are looking for

  • OpenSQLException - The SQL statement "INSERT INTO "KMC_SUB_RCPT"...

    Hallo, We have the problem that subscriptions cannot be sent. In defaultTrace I have found following entry: #1.5 #32B150008004002400001641000710B80004539FE52B4274#1217846116565#com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionsOpenS

  • IPod shuffle with ipod mini

    how do i re-name an ipod shuffle, if i already have itunes installed with my other ipod mini, how do I change the name so it shows up as what i'd like it to be in iTunes? Pls. Help Kelsey

  • CS6 Crashes in Mountain Lion

    I know this is a redundent thread, but I really need some help here.Since upgrading to mountain lion, Indesign, Illustrator and dreamweaver have all started crashing on launch. Specifically when trying to restore a previous session/document. I have t

  • ABAP Coding- enhance transactional datasource

    i need to bring in data from different tables and following code works for me: DATA: l_s_ziw_orderma_i like ziw_orderma_i. CASE i_DATASOURCE. WHEN 'ziw_orderma_i'. LOOP AT c_t_data INTO l_s_ziw_orderma_i. l_tabix = sy-tabix. SELECT PRODUCT_IT FROM CR

  • EMail attachment size, what is your limit???

    MIME encoding sucks :lol: A email with a 35meg .zip attachment comes in as 49.6megs (using the smtp logs) I've got a non-tech CTO that want to accept 50meg attachments. It seems to be working but sometimes the SOPHOS AV engine crapsout and the email