Changing the insets of a component

anyone know how to set the insets of a component?
there's a getInsets() method in the Component class, but there doesnt seem to be the usual 'set' method. It must be easy to change, can anyone help?
thanks in advance,
rob

thanks for your help,
I tried changing the insets using the public members but this basically doesnt update the component space that it uses. Using the EmptyBorder does create some customised inset space but it doesnt work as expected. Basically Im using another border within the empty border such as:
EmptyBorder empty_ = new EmptyBorder(5,10,5,10);
          TitledBorder title_ = new TitledBorder(new LineBorder(new Color(102,102,153)),"hello");
          CompoundBorder compound1_ = new CompoundBorder(empty_, title_);
          CompoundBorder compound2_ = new CompoundBorder(new BevelBorder(BevelBorder.RAISED), compound1_);
the insets of the empty border seem to work rather unusually, namely, the lineborder isnt drawn out fully. Instead it looses about half of its border... have you any suggestions or sample code which you can show me?
once again, thanks for your help,
rob

Similar Messages

  • Changing the MXML of a component at runTime

    Hi there,
    I need, depending on runTime conditions, to update the surface of a Flex window with a combination of controls.
    For example I may need to layout this line
    THIS IS STATIC TEXT #COMBOBOX# THIS IS ANOTHER STATIC TEXT #CHEKBOX#
    Or this line :
    #EDITBOX# STATIC TEXT HERE
    A priori I can't tell the set of combination I may encounter, so I need to be able to dynamically construct the UI.
    If changing the MXML of a component is possible, then I can ofcourse solve this pbm since the solution will only have to deal with string operation.
    Please help.
    Thanks in advance.

    Hi,
    Check View States.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

  • How to change the label of a component with javascript?

    Hi, i need to change the label of a component dinamically. I tried:
    if (document.getElementById('P34_ID_OPERACION').value==2) {
    document.getElementById('P34_ID_USUARIO_DEST').label = 'Encargado:';
    if (document.getElementById('P34_ID_OPERACION').value==3) {
    document.getElementById('P34_ID_USUARIO_DEST').label = 'otro texto:';
    but doesn't work.
    any ideas?
    Edited by: Andres Vilallave on 16-mar-2010 12:49

    Hi,
    I think "label" is not valid attribiute for "input" tag.
    Create new hidden item P34_LABEL. For item 'P34_ID_USUARIO_DEST', put label value as +&P34_LABEL.+
    Now try the following JS
    <script>
    if (document.getElementById('P34_ID_OPERACION').value==2) {
    document.getElementById('P34_LABEL').value = 'Encargado:';
    if (document.getElementById('P34_ID_OPERACION').value==3) {
    document.getElementById('P34_LABEL').value = 'otro texto:';
    </script>Cheers,
    Hari

  • Changing the Inset of text blocks

    I want to change the inset (objects properties - text block -
    inset) of several text blocks at once. But if I select more than
    one text block, the properities feature disappears. Anyone?

    well, it looks like the best way to do it is to do the following...
    one the button click start a timer which can be created from Timer
    when timer reaches a certain point in time change the text filters
    there is a Timer class, it can start and stop, not sure how to get the time from it though
    the list of filters and their constructors is in the actionscript documentation, pretty simple to follow
    and you can easily add/remove/modify filters on the text
    seems like the best approach i can think of... pretty standard... nothing special...

  • FPM - How to change the title in a component configuration

    Hello,
    I am working with the component configuration EHHSS_INC_REC_NRM_QAF_V3 (version 7.31) and I need to change the title of the tab. I created an OTR with the text "Report Near Miss test". I changed the application title and I also change the tooltip text in the IDR to this OTR.
    When I executed it, I only see the modication on the tooltip. Why the application title is not shown with the modification? How can I modify also the tab and the title?
    Thank you for your help!
    Marie-Josée

    Hello,
    Thank you for your time. The application configuration is link to the business object EHHSS_INCIDENT...I did not find a view. I do not have a lot of experience in FPM so can you show me how? I looked in BOPF but I am not able to do it with an enhancement
    Marie-Josée

  • Anyone know how to dynamically change the border of UILoader Component

    Hi All
    I am loading multiple instances of UI loader containing
    external SWFs on my stage. When user double clicks on the video
    thumbnail, an instance of UIloader will be placed on the main
    stage.The user can place as many UIloader instances on the main
    stage. My aim is that if user puts any UIloader on top of already
    existed UIloader, the existed loader will be replaced with the
    placed loader. I am successful in implementing that by using
    hitTestObject method for that. I am planning to provide enough
    feedback to the user for this UIloader replacement process, so i
    was thinking to change the border of the UIloader as soon as the
    dragged UIloader hits the already existed UIloader.
    Does anyone know how would I animate UIloader to give enough
    feedback to the user that it is being replaced. Creating an
    invisible movie and moving it wherever UIloader goes doesn't sound
    much efficient.
    Please help me out in figuring out this problem. Also
    if anyone has better idea to give enough feedback to user, that
    will also be welcome. Just to be little clear i have provided
    little pseudo-code(below) of what i am doing here.
    Any help will be highly appreciated.
    Thanks
    Anuj
    /***************Abstract Pseudo code for my
    problem*****************/
    myUILoader.startDrag();
    //Putting video on top of already existed videos
    var trackChild:Number=container.getChildIndex(myUILoader);
    var childContainer:DisplayObject=
    container.getChildAt(trackChild);
    for( var z:Number=0;z<=container.numChildren-1;z++)
    var restChild:DisplayObject=container.getChildAt(z);
    if(childContainer!=restChild)
    if((childContainer.hitTestObject(restChild))==true)
    //Show Animation during replacement
    //how would i give feedback here
    container.removeChild(restChild);

    What is a Lopp Browser?
    A typo I meant Loop Browser, sorry. On your iPad you can see the iTunes Library in the Loop Browser:
    Open the Loop Browser
    Tap the Loop Browser button in the control bar. The Loop Browser button is available only in Tracks view.The first time you open the Loop Browser, it shows the Instrument grid.
    I was told by a sales person at the Apple Store at one of my One-on-One sessions, that Mac would not transpose nor change tempo because my "live music" was not a "midi" file.
    GarageBand 10.0 will change the pitch and tempo of live recordings - midi as well as audio instruments, but not of audio files. But you need to enable the "Follow tempo and pitch" option in the track editor.
    Then you can transpose the region using the "Transpose" slider.
    And if you change the project tempo in the LED display after you enabled "Follow Tempo&Pitch" the recording will follow the new tempo.
    You can test this with a new project created on your mac.

  • Programatically changing the id of a component

    Hi!
    I'm trying to solve the problem of duplicate id, without havind to manually give an id to all components.
    To accomplish this, i was trying to programatically change the id of all components that have the id null or that the id begun with _id with an PhaseListener.
    But i don't achive any results.
    Does anyone know how to do this?
    Thanks.

    Hi,
    Check View States.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

  • Change the look of a disabled component

    Can anyone clue me in on how to change the look of a component like a jScrollPane when it is disabled? I need to change the foreground/background so it will be easier for people to read. I've looked around for an answer since i'm sure it's simple enough but have come up dry.
    Thanks
    Chris

    Can anyone clue me in on how to change the look of a component like a jScrollPane when it is disabled? I need to change the foreground/background so it will be easier for people to read. I've looked around for an answer since i'm sure it's simple enough but have come up dry.
    Thanks
    Chris

  • How to change the width for af:selectManyShuttle by skins

    i need to change the width for selectManyShuttle by skin i can do that by change the width for .AFFieldText but this method change the all select* and textfiled width,so i just want to change the width for selectManyShuttle component.
    and i hope to know how to change the header color for selectManyShuttle ,the default color for it is green.

    Thanks ,It is working
    Could you please tell me how to change the header text color for af:selectManyShuttle
    Regards
    Wish79

  • How to change the constraints?

    I add a JPanel to a JFrame using:
    this.getContentPane().add(jPanel2, new GridBagConstraints(0, 1, GridBagConstraints.REMAINDER, 1, 1.0, 1.0
    ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(110, 10, 10, 10), 0, 0));
    Is it possible to change the properties of the constraint later? How can I change this?
    Thanks on advance!
    P.S. I'm interested on change the Insets.

    One way to do the grid bag thing is:
    <code>
    //I think make clearer objects like
    GridBagLayout gridbag = new GridBagLayout();
    // Create constraints object
    c = new GridBagConstraints();
    //then put in panel
    jPanel2.setLayout(gridbag);
    //or content pane
    getContentPane ().setLayout (new GridBagLayout ());
    //then call adjustments
    c.fill = GridBagConstraints.NORTHEAST;
    c.weightx = 20;
    c.weighty = 100;
    c.gridx = 0;
    c.gridy = 0;
    //So on and so forth
    //Ive never used Insets before but I guess
    //it would go like
    c.insets = new Insets(7,7,7,7);
    //or
    Insets inset = new Insets(7,7,7,7);
    c.insets = inset;
    //hopefully like that
    // then when you put stuff in use
    // something like
    getContentPane ().add (jPanel2, c);
    </code>
    I think you will find this approach alot
    easier to understand and read than the way you were doing it.
    GridBag is fascinating isn't it.
    alot of people avoid it
    but it will really will do lots of wild stuff
    if you have the time to toy with it.

  • Rename domain cant change the case of DC

    Hi,
    I try to rename a domain but it is not possible to change the case of the TLD from LOCAL to local for the LDAP Attribute DC (possible it will also not work for the domain part, but this I didn't try).
    Any idea where the case is saved? I think it must be stored somewhere in ldap, but I dont know whre (ldap search for *=local do not perform).
    I also tryd the rename from domain.LOCAL to domain.test (where the case was ok) and back to domain.local, but it become again domain.LOCAL.
    Notice: the dns name is renamed the the right case (only on some points you can read the tld with upper case), but not the ldap attribute (I see DC=domain,DC=LOCAL)
    Regards,
    Thomas

    Hi Thomas,
    Before going further, I am not sure why we are trying to do this. Active Directory is case aware but not case sensitive, which means that it doesn't matter if it is local or LOCAL regarding the functioning of AD. Besides, usually,  domain renaming
    is not recommended, and changing the case of domain component label is not renaming a domain. 
    If we really want to do this, we can try to change the names of other domain component labels as well to see if the case of LOCAL can be changed.
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Problems in changing the text of the id attribute of the components

    Does anyone have any way to adjust the exchange component of the ADF id?
    I am making an example system which has two pages and has a flow (control flow). The following problem is happening, she was with them at work and then I take the test to change the id of a text label to another did not work anymore after that my flow, it seems that she is no longer seeing this page.
    NOTE: also edited the file. Java page and checked the pageDef it too.
    Has anyone managed to change the id and leave the page 100%

    Your question is not clear, at least I don't understand it.
    What do you mean by ...exchange component of the ADF idWhen you open the page in jdev, switch to source mode: do you see any errors or warnings (check the right hand gutter for red or orange marks)?
    Which jdev version do you use?
    Changing the id of a component works for me as long as the id is not used elsewhere on the page (e.g. as ppr target).
    Timo

  • How to disable or change the value of h:commandlink jsf component

    Hi,
    I am a student. I am using h:commandlink. I need to change the value of the component once it is clicked by the user. How do i do that?
    If i cannot change the displayed value of the commandlink. I am thinking of atleast disabling the link once the user clicked., to avoid the link being clicked more than once by the user.
    <h:commandlink id = "follow" action = "usermanager.followdoctor" value = "Follow"/>
    Usermanager is my managed bean class for this jsp page. The value "Follow" is the one that i want to be changed to "following" once it is clicked. Please help me. Thanks for your time in advance.

    Hello qimbal2,
    Thanks for getting back to me. you are right , i should disable the link as soon as it is clicked. I went ahead and implemented this logic by using a property in my bean class and binding that property to the value of my link. I wrote the logic in my action method in such a way that when i click on follow for the first time, the value of the link would change to 'Following' and the link would be disabled. It works for me now.
    Thanks,
    Suha

  • In base component when user change the serial number we need to set date time in Extra attribute filed

    HI Team,
    In ibase component when user change the serial number we need to set date time in Extra attribute filed..if we click edit ,User change serial number after save we need to set date time in  Extra Attribute 4 field .
    Component - PRDGENSET
    In this component there is no attributes,so where we need to implement and how to implement please help.
    Thanks
    kalpana

    Hi Abi,
    Thanks for your reply..see i debugged..i have put break point in method SET_S_STRUCT method if press enter in serial number ,debuggeris triggered..in SET_S_STRUCT method value getting serial number..so how to write the logic here...
    In GET_S_STRUCT method iam getting all attributes  but serial number is not filled..So could you please help here what to do..
    in set_S_STRCUT method value iam gettin serial number...in collection wrapper iam geting zrealtions if i open attributes_ref -if i pass Attribute value in run time its getting displayed.so how to write the logic based on serial  number please help some coding.
    Thanks
    kalpana

  • Changing the default icon of a af:inputDate component

    Hi,
    I want to change the icon of an af:inputDate component.
    I discovered two solutions, but they are imcomplete solution.
    Solution 1:
    af|inputDate::launch-icon-style{
    background-image: url("../images/icone_calendario_menor.gif");
    af|inputDate::launch-icon-style:hover{
    background-image: url("../images/icone_calendario_menor.gif");
    af|inputDate::launch-icon-style:active{
    background-image: url("../images/icone_calendario_menor.gif");
    Problem: When I press the icon whith the mouse button and wait still appear a default icon while mouse button is pressioned.
    Solution 2:
    af|inputDate::launch-icon{
    content: url("../images/icone_calendario_menor.gif");
    width: 16 px;
    height: 16 px;
    af|inputDate::launch-icon:rtl{
    content: url("../images/icone_calendario_menor.gif");
    width: 16 px;
    height: 16 px;
    Problem: This solution works on Internet Explorer, but in Mozilla Firefox the new icon cover partially the default image but still possible to see a piece of the defaul icon.
    Observation: My new icon is 16 x 16 pixels.
    I believe that the solution 1 is better, but i think is missing a piece of code, there is a billion of icon states, core, busy, compact, depressed, selected , etc.
    Thanks,
    Victor Jabur
    Edited by: user4579872 on Apr 26, 2010 5:29 PM

    Check this doc http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e15862/toc.htm#StandardPseudoClasses
    It shows all pseudo classes available.
    Timo

Maybe you are looking for