How to add padding

I'm working on this code:
// Dialog opened when "About" button is pressed
    public void aboutDialogPanel()
        final Stage aboutDialog = new Stage();
        aboutDialog.initModality(Modality.WINDOW_MODAL);
        GridPane grid = new GridPane();
        grid.setAlignment(Pos.CENTER);
        grid.setHgap(0);
        grid.setVgap(3);
        grid.setPadding(new Insets(50, 50, 50, 50));
        // Product name
        Text productName = new Text("Product Name");
        productName.setFont(Font.font("Verdana", 12));
        grid.add(productName, 0, 0);
        // Product version
        Text productVersion = new Text("Version");
        productVersion.setFont(Font.font("Verdana", 12));
        grid.add(productVersion, 0, 2);
        // Close Button
        Button closeButton = new Button("Close");
        closeButton.setOnAction(new EventHandler<ActionEvent>()
            @Override
            public void handle(ActionEvent arg0)
                // Close the dialog when "Close" button is pressed
                aboutDialog.close();
        grid.add(closeButton, 0, 3);
        // Configure dialog size and background color
        Scene aboutDialogScene = new Scene(grid, 600, 500, Color.WHITE);
        aboutDialog.setScene(aboutDialogScene);
        aboutDialog.show();
I'm getting this result:
[IMG]http://i40.tinypic.com/2pt1m44.png[/IMG]
I want to center the text and display it equally distributed on the stage. Now the rows are very close to each other. How I can set equally distributed padding around the text?       

Hi,
I was just trying to do the same thing. And I thought this would be simple...
Ok so minViewportInset doesn't work. my v scroll bar is about 20 px width and If I set this property to 50px the viewport gets smaller by 50 px from all sides when there is no scroller visible. And when it is visible it's located on the same spot where it would be if you had minViewportInset="1";
So this is like a permanent not depending on the scroller visibility condition.
What I need is simply as the guy who posted this post. When there is no scroller - full size viewport, when there is I want 10px padding for my text.
Shongrunder could you tell if there is some developement on this matter, I see this topic is from long time ago. If no then what should I do:
1) scrollerLayout or 2) individual VScrollBar. I need the easiest solution
Also if the guy who posted this question found a good work around this, please share it
Thanks!

Similar Messages

  • How to add padding to s:Scroller?

    I have used scroller for my custom component:
    <s:Scroller top="0" width="100%" verticalScrollPolicy="auto" height="100%" >
         <components:propertyDetails  left="20" right="20" id="propDetails"  />
    </s:Scroller>
    My custom component is a group:
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" height="100%" width="100%" xmlns:components="components.*">
         <s:layout>
              <s:VerticalLayout gap="0" paddingRight="10" paddingTop="5" paddingBottom="5" paddingLeft="0" />
         </s:layout>
         <!--  Some code here -->
    </s:group>
    I want paddingRight to be 10 only if scrollbar appears on page, otherwise padding should be 0.
    In simple words i need a gap of 10 pixels in scrollbar and component if scrollbar is visible, otherwise component should use that space.
    Is this possible to achieve?
    Best Regards,
    Alok Jain

    Hi,
    I was just trying to do the same thing. And I thought this would be simple...
    Ok so minViewportInset doesn't work. my v scroll bar is about 20 px width and If I set this property to 50px the viewport gets smaller by 50 px from all sides when there is no scroller visible. And when it is visible it's located on the same spot where it would be if you had minViewportInset="1";
    So this is like a permanent not depending on the scroller visibility condition.
    What I need is simply as the guy who posted this post. When there is no scroller - full size viewport, when there is I want 10px padding for my text.
    Shongrunder could you tell if there is some developement on this matter, I see this topic is from long time ago. If no then what should I do:
    1) scrollerLayout or 2) individual VScrollBar. I need the easiest solution
    Also if the guy who posted this question found a good work around this, please share it
    Thanks!

  • HT3500 how to add Hp printer to i pad hp 5510

    how to add hp printer 5510 series to i pad 2

    Some printers require a firmware update from the manufacturer to enable the AirPrint feature. Check with HP for available updates for your printer model.
    You might also want to post in the iPad Community Support area....as this is not a question for the AirPort Extreme, AirPort Express or Time Capsule.
    Click Here:
    Using iPad

  • How to add leading spaces to af:table column

    Hi,
    I'd like to display leading spaces in af:outputText located in table column. Value property is bound to backing bean property, where I add custom leading text.
    However, if I add , the & nbsp; text "& nbsp;" is displayed, not rendered by the browser. Any ideas?
    Regards
    Jernej
    Message was edited by:
    Jernej Kase
    Message was edited by:
    Jernej Kase

    Hi,
    since you didn't mention how you solved it, here is the approach i would have taken
    - use skinning to add padding. This way you don't have to mess with the display data
    Frank

  • How to add fields to already loaded cube or dso and how to fill records in

    how to add fields to already loaded cube or dso and how to fill  it.can any one tell me the critical issues in data loading process..?

    This is sensitive task with regards to large volumes of data in infoproviders.
    The issue is to reload of data in case of adjusted structures of infoproviders.
    Indeed there are some tricks. See following:
    http://weblogs.sdn.sap.com/cs/blank/view/wlg/19300
    https://service.sap.com/sap/support/notes/1287382

  • How to add a library (libSomeRandomlib.so) to a project....??

    Ok, so I've been trying to get CERN's ROOT program/libraries to work in an xcode project for a while, but I'm running into one really weird error, and I think I may just not know how to add a library to a project correctly.
    Suppose I create a new Xcode C++ command line tool project. I hit Build and go, and it gives me a nice little Hello World! in the console, just as it should. If I then click on the project in Groups & Files, go to Project>Add to Project..., and choose, say, libCint.so, from my root/lib directory, and click ok, then click Build & Go, I get an error in the console:
    dyld: Library not loaded: @rpath/libCint.so
    Referenced from: /Users/paulthompson/Documents/Programming/Build Products/Debug/LibraryIncludeTest
    Reason: image not found
    sharedlibrary apply-load-rules all
    Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)
    My assumption is that either I'm missing a step in the process of adding a library, or else there is something jacked up with the libraries themselves. Anyone have any advice?
    Thanks,
    Paul
    EDIT* Oh, I should mention that the actuall binary that gets built after adding the library WILL execute properly in the Finder, or from terminal, just not with the Build & Go, or Go commands from within xcode.
    Message was edited by: TraxusIV

    TraxusIV wrote:
    Results of otool:
    LibraryIncludeTest:
    @rpath/libCint.so (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)
    Macintosh-9:Debug paulthompson$ otool -L /Applications/CERNRoot/root/lib/libCint.so
    /Applications/CERNRoot/root/lib/libCint.so:
    @rpath/libCint.so (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
    I honestly don't know much about @rpath. I found this page that explains it a bit more: http://blogs.sun.com/dipol/entry/dynamiclibraries_rpath_andmac
    So, since I don't want to deploy with the environment variable set, I should ask, what IS the correct, MacOS X way to do it?
    The best way to find that is to look at how Apple does it. They put frameworks in /System/Library/Frameworks and regular shared libraries in the standard places. You can do the same. Put your frameworks into /Library/Frameworks and your shared libraries into /usr/local-based paths.
    If you want to create stand-alone executables that can be installed via drag-n-drop, you can put shared libraries inside the application bundle. If your shared libraries/frameworks are elsewhere, you will need some sort of installer to get them installed.
    I've been sifting through Apple's developer documentation but I have yet to find a concise, straightforward explanation of how to add shared libraries. I'm horribly confused at this point. Is there a good tutorial available anywhere for both the general unix case of linking to dylibs and .so's, and the Mac specific case?
    Hopefully someone else knows an answer for this one.
    *EDIT* I do already have the variable defined both in ~/.MacOS/environment.plist and also in Xcode as an additional user variable.
    I'm not sure about the whole RPATH thing. Setting environment.plist will define environment variables for use in the Finder, but that is really a hack. There are better ways to do it, but if you are porting some open-source programs, that may be the only way. You should be able to define those variables in Xcode. You have to selected the debug executable under "Exectuables"

  • How to add A single row at the middle of the table in a Webi report

    Hi,
         I created a Webi report using Universe(Created universe using bex query).Now i have a requirement to display a row at the middle of a report. Can you please tell me ,how to add a sigle row at the middle of a Webi report.
                                                    Thanks in advance
    Regards
    Monika

    Hi Monika,
    It is not really possible to add a row (I assume you mean of unrelated data) to the middle of a table in a report. You can add a new table with a single row between two tables. For instance you could add a new one row table, or even single cells which are positioned relatively between two tables. Possibly a block on top of another. But this gets tricky.
    Can you explain in more detail what you are trying to do?
    Thanks

  • How to create a job card and how to add waranty card in sales order

    I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
    painful area is how to create a job card and how to add waranty in sales order.
    Regards,
    Venkat

    Hi,
    Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
    Regards
    Krishna

  • How to add apache to an exisitng BOXI31 presently running on IIS

    Hi Tim,
    I know its rude that I directly mailed you but i am not able to post on the SAP forum due to some reasons I don't know. So please if you can help me I would be highly indebted.
    I have a multiple server installation.
    Number of Servers : 4
    Number of CMS : 2
    Application tier on 2 servers.
    Web tier on 2 servers.
    The problem is when i login my .NET infoview works fine but my Java infoview doesn't.
    I found the error that the CCM doesn't have Tomcat Apache Server.
    So my guess is thats the reason why the java infoview is not working.
    Please help how to add the Apache to the CCM.
    Regards
    Sid

    Hi,
    You need to run custom installation to install Java Web components on your server box and choose to install
    tomcat app server
    - Subhodeep

  • How to add description of a column of a table in SQL Azure

    Hi
    I have some tables in my application database where there are descriptions added against certain columns. Needless to say they were done by using sp_addextendedproperty.
    Now I am trying to migrate the Database to SQL Azure. SQL Azure does not support sp_addextendedproperty.
    Hence I am not able to figure out how to add descriptions to those columns.
    Any help would be much appreciated.
    Thanks
    Soumyadeb

    Hello,
    Just as Latheesh post above, Windows Azure SQL database are not support extended stored procedures. That’s one of the limitations on SQL database, and I don’t know there is another way to achieve the same on Azure.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to add more fields at level task for importing to MsProject

    Hi everyone,
    We would like to have the same number of fields either for importing as exporting; or at least, the fields that we need.
    The problem is when we are configurating the fields for exporting from cProjects to MsProject, we found 81 available fields and then we don't find the same amount for importing (34). So, in some cases we don't find fields which were configurated for exporting and it is no posible to upload the information back because the field is no available for importing.
    Does anyone knows how to add more fields for importing at the cProjects side?
    Thanks a lot,
    CAMILO URIBE

    Some fields can not be migrated because of MsProject designe. The above is the reason why cProjects' customizing does not offer the
    mapping of the same nuember of fields.

  • How to ADD field in iview ?

    hi,
    in portal-iview i want to add a field.
    when i go to 'portal-content -> open the iview with right click -> preview' and then
    do ctrl-alt-right-mouse click i got to the customizing of the fields.
    i know how to HIDE fields there, but i don't know how to add fields ? in the list
    of the fields the necessary fields are available, BUT i only have to options:
    hide -> YES or NOT PERSONALIZED
    any ideas ?
    reg, Martin

    Gopal,
    the root element of this fields does NOT have the option 'decorate'.
    it is the quoata overview of ESS : sap.com/ess~quotas
    the top of the tree has option 'decorate', but this is above the necessary table where
    i select the data.
    my adrl is 
    martin.svik(at)denzel.at
    maybe we can 'change' some screenshots where you can send me yours and i can
    send you mine to explain it in a better way
    reg, Martin

  • How to add more drop zones or movies in an idvd menu

    I was building a dvd in idvd and ran out of drop zones to fill but I couldn't figure out how to add more drop zones.
    I tried different templates but I could find none that had more than 12 drop zones.
    Then I was adding movies to the main menu and idvd refused to allow more movies added when I reached 10 movies. It said that the template did not accept more movies.
    I tried a few other templates and could not get it to accept more.
    I don't want to add submenus because the movies being used do not lend themselves to being put into different submenus.
    Is there some way to add more than the default drop zones in an idvd template and to add more movies in a menu without having to use submenus?
    Thanks for any advice.

    I couldn't figure out how to add more drop zones
    Sorry, the templates 'are what they are'.
    I don't want to add submenus because the movies being used do not lend themselves to being put into different submenus.
    You need to figure out how to work with what is available.
    If you want more freedom, buy Apple's Final Cut Studio and learn to use DVD Studio Pro.

  • How to add a gradient or 50% transparent fill to an .ai imported path?

    Hello All;
    I need some help. My task sounds simple enough but not sure how to accomplish it.
    I created the following path in Illustrator (See attached illustration - the top one). This is actually for a lower-third graphic.
    I have been successful at importating that into .ai. Though should I be using a solid or a shape layer or doesn't it matter ?
    I can add a stroke which affects the color and thickness of the outlines OK.
    However, I can't figure out how to add either a gradient fill or one that is 50% transparent ? Can anyone help ?
    Oh ... I'll mention I'm using After Effects CS3.
    Thanks.
    Tim

    Rick;
    I've used Illustrator for quite a while both at home and at work but I really havn't had to do anything that complex yet. Same goes for Photoshop. I bought DVD tutorials for most of the productivity software I use and when you gave your first explanation, I watched the DVD tutorial on Importing into AE so I know what you're referring to when you say to import as composition. So far, I've only tried to import into AE by copying and pasting. I think that's why I just got the path and not the background. I'll try importing a composition shortly and see if I get the fill too. I actually found a tutorial on making the type of shape I need to in Photoshop so maybe I'll try that instead of Illustrator and then import that into AE.
    Btw - It may not actually be a gradient fill I need to use but instead a solid fill with the top half lighter and buttom half darker.
    In case you're interested, here's actually what I'm trying to create for a video project. I could actually buy the animation for $8 but I figured that this can't be that difficult and I need to learn this stuff anyway ... http://videohive.net/item/lower-third-15-different-colour-schemes/145337?WT.ac=category_th umb&WT.seg_1=category_thumb&WT.z_author=berol
    Tim

  • How to Add parameter fields in BI publisher fields

    Hi,
    I'm creating xml report for Apps standard Trial Balance Summary, here i cant able to run the .rdf locally due to SRW.UserExit .
    So i got the XML file from output of the report.
    Then i added the xml data in BI publisher and then i have created the .rtf for that.
    Here i need to add some fields which is not available in fields list (in BI Publisher).
    How to add that fields, or is possible to add fields manually.
    That fields are given as parameters while running the .rdf file.
    Please tell me how to solve this problem.
    Is possible to add fields manually means tell me how to do that.

    If those fields are input parameters to the concurrent program then you can display them in RTF by declaring and printing it as
    <?param@begin:P_CONC_PARAM?>
    and display it as <?$P_CONC_PARAM?> - Note P_CONC_PARAM should match your parameter token

Maybe you are looking for

  • Company code & is not defined

    Hi Masters; I need your help... I had activated the CP (Budgget Management) component in 4.6Cv with the normal parameters and configuration, When I posting any document FI the system show me the error message F5 165 "Company code & is not defined" wh

  • SDK1.3.1..."main" java.lang.NoClassDefFoundError: ExampleProgram...again

    I've read a view posts regarding this problem but none with SDK1.3.1 or with this type of twist. I'm having a problem executing the ExampleProgram using: javac ExampleProgram.java java ExampleProgram ...and I get... Exception in thread "main" java.la

  • Edit KM document locally..Operation Failed??

    Hello,    we are running SAP NW Portal 7.0, SP14 and KM, Browser: MS Internet Explroer 7.0.    Now in KM when i try to edit a local Excel-sheet with the Command "Edit Locally" i get the following Error: "Operation Failed"...???!!! a Java Applet try t

  • LT04 problems with call transaction

    Hello, I am using RF and creating screens for users to putaway material  in a raw material warehouse based on a material document number from the GRN which is linked to a TR (transfer requirement).  I am, however, having problems with the TO creation

  • HT5085 How do I know my concert movie has been downloaded completely to my mac book pro

    How do I my concert movie from the itunes store has been downloaded completely in my mac book pro mid 2012? thanks