How to make the cell content stretchable as well as the whole grid?

Hi,All:
I want a cell(which is a child grid) in the parent grid to be stretchable when the parent grid is changing size? Right now, the parent grid is resizable without any problem, but the child grid in a cell is not stretchable even if i set up of the properties. Please take a look at this picture! https://twitter.com/#!/hebehaha/status/194847757327015938/photo/1
Any ideas?
grid_photo1.setMinWidth(545);
grid_photo1.setMinHeight(115);
grid_photo1.setPrefWidth(545);
grid_photo1.setPrefHeight(115);
grid_photo1.setMaxWidth(Double.MAX_VALUE);
grid_photo1.setMaxHeight(Double.MAX_VALUE);
Thanks,

Can you post a short, complete, runnable example?
Have you looked at the setHgrow/setVgrow constraints?
http://docs.oracle.com/javafx/2.0/api/javafx/scene/layout/GridPane.html#setHgrow%28javafx.scene.Node,%20javafx.scene.layout.Priority%29
There is also http://www.miglayout.com/ for JavaFX which you might want to look at if you have numerous complex grids to layout and are interested in alternatives to GridPane.

Similar Messages

  • How to make table cell have certain width

    Hi
    i have 3 cells when i write text in any cell it effects the
    width of other cells !!!
    how to make every cell have certain? i mean i want to wrap
    the text not to effect the cell width
    thanks in advance.

    Hi Mac,
    Try this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD><TITLE>Home</TITLE>
    <META http-equiv=Content-Type content="text/html;
    charset=iso-8859-1">
    <style>
    .text-content-green {
    FONT-SIZE: 11px;
    COLOR: #a5a834;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .text-content-green:hover {
    FONT-SIZE: 11px;
    COLOR: #AE0B0B;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    .margin {
    margin: 1px 1px 1px 1px;
    border-style: solid;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-color: gainsboro;
    </style
    </HEAD>
    <BODY topmargin="10px" leftmargin="0" rightmargin="0"
    class="body-style">
    <TABLE width="729" border="0" cellpadding="0"
    cellspacing="0" cellsadding="0" align="center" class="margin">
    <TBODY>
    <TR>
    <TD width="125" valign="top" bgcolor="#f0f0c1">
    <table width="125" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"><A
    class="text-content-green" href="default.html">LEFT
    NAV</A></td>
    </tr>
    <tr>
    <td colspan="2" align="middle"></td>
    </tr>
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    </table>
    </TD>
    <TD vAlign=top width=539 bgColor="white" height=471>
    <P class="text-content-green" align=left
    style="padding-left:5px">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit.Duis aute irure dolor in reprehenderit in
    voluptate velit esse cillum .
    </P>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY>
    </HTML>
    HTH
    Shanthi

  • How to make a mobile content in flash

    plze does any one know how to make a mobile content in flash

    You better ask in the Flash forum; this is the Flash Player forum.

  • Customizing the Cell Content of a Pivot Table

    Hi,
    I have been away from ADF for a few years (since 10g v 1.3.1) and am quite impressed with all the Faces functionality added to the 11g release. The application I wrote relied heavily on pivot tables which back then, I had to use stored procedures in the database and dynamically views to display information. I am very interested in moving this application to 11g and taking advantage of the PivotTable component. One thing the application does is change the style of cells based upon the object being presented. I have been reading:
    Oracle® Fusion Middleware
    Web User Interface Developer's Guide for Oracle Application
    Development Framework
    11g Release 1 (11.1.1)
    B31973-03
    And am very interested in section 26.8 Customizing the Cell Content of a Pivot Table.
    I easily created a pivot table and would like to change the formatting of various cells. I created a backing bean for a test page and added the Example 26–4 Sample Code to Change Style and Text Style in a Pivot Table to the bean.
    public CellFormat getDataFormat(DataCellContext cxt)
    CellFormat cellFormat = new CellFormat(null, null, null);
    QDR qdr = cxt.getQDR();
    //Obtain a reference to the product category column.
    Object productCateg = qdr.getDimMember("ProductCategory");
    //Obtain a reference to the product column.
    Object product = qdr.getDimMember("ProductId");
    if (productCateg != null && productCateg.toString().equals("Sales Total"))
    cellFormat.setTextStyle("font-weight:bold")
    cellFormat.setStyle("background-color:#C0C0C0");
    else if (product != null && product.toString().equals("Sales Total")
    cellFormat.setTextStyle("font-weight:bold");
    cellFormat.setStyle("background-color:#C0C0C0");
    return cellFormat;
    Almost verbatim except changed the literals to select data in my use case domain. My question is: How do I invoke this message from my pivot table? I need to pass it a instance of the DataCellContext. The example is great and illustrates what I am looking to do but does not go into the implementation details required. Is there a sample app available for download that demonstrates these capabilities?
    Thanks,
    Jeff
    Edited by: jcapzz on Jun 9, 2011 3:56 PM

    Hello,
    I haven't fully understood your question.
    Is it: How do I call the getDataFormat() method from my pivot table?
    If so , you need to set the dataFormat attribute of your pivot table.
    ex: <dvt:pivotTable id="pt2" var="cellData" varStatus="cellStatus"
    value="#{bindings.YourView.pivotTableModel}"
    headerFormat="#{viewScope.yourBean.getHeaderFormat}"
    *dataFormat="#{viewScope.yourBean.getDataFormat}"*
    contentDelivery="immediate" pivotEnabled="false"
    columnFetchSize="-1" rowFetchSize="-1"
    />
    I also put the *headerFormat* attribute which allows to customize the headers
    I hope I understood your question ;)
    Jack

  • Modifying the cell content based on input parameter from variable screen.

    I am trying to modify a cell content in the BEX Web Application Report based on the input parameter from the variable screen.
    I am already aware of how to change the cell content by creating a new ABAP class and inheriting CL_RSR_WWW_MODIFY_TABLE.
    I do not know how to get the input parameter variable from the variable screen in my custom class ZCL_RSR_WWW_MODIFY_TABLE. I am not very familiar with ABAP and would appreciate your help.
    Thanks
    Sowmini

    in the start method
    define a work area like line of n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS
    loop at n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS into <wa> ..
    endloop .
    This will have all the filter, variable values entered in the selection.
    Regards
    Raja

  • How to make editing cell to show up caret and taking keyboard event

    Hello everyone:
    I have the following problem with table editing.
    1. using mouse clicking, the editing cell will have cursor and taking keyboard event.(no problem with it)
    2. just type in data, it will show up in the selected cell, but the editing cell do not have cursor visible and also do not fire the keyboard event.
    I have problem with this one. So how to make editing cell to have caret visible and taking keyboard event.
    Thank you very much!
    --tony                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    you should subclass JTable and overwrite two methods.
    1. protected boolean processKeyBinding(javax.swing.KeyStroke ks,
    java.awt.event.KeyEvent e,
    int condition,
    boolean pressed)
    to store the current keyboard event,
    2.public boolean editCellAt(int row,int column,java.util.EventObject e)
    to fix the problem with isCellEditable and curret position and direct the event into proper place.

  • How to make a summary column appear only once (in the first page only) in SSRS 2008?

    Hello Everyone,
    How to make a summary column appear only once (in the first page only) in SSRS 2008?
    Regards
    Gautam S
    Regards

    Hi,
    Assuming you have test data like this ;
    select 'abc'as [GROUP],'NN' name , 1 id
    union all
    select 'abc' as [GROUP] ,'PP' name , 1 id
    union all
    select 'abc'as [GROUP],'RR' name , 2 id
    Step1  : take Tablix with row group as your group Name .
    Step2 : right Click on Row Group Details -> Delete-> Delete Group Only
    Step3 : In Count Cell use below expression ;
    =CountDistinct(Fields!id.Value)
    Follow this link;
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b6b45917-0a26-4d15-be46-2c6a2697d6e9/distinct-rows-sum?forum=sqlreportingservices#5ffdee06-c2c8-44ea-a3a5-b958488bb6b5
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

  • In windows 7, how to make firefox start automatically when I turn on the computer

    In Windows 7, how to make Firefox start automatically when I turn on the computer. Note, I am asking how to do this with Windows 7, not xp, not vista.

    You need to place a shortcut to open Firefox in the Start > Programs > Startup folder.<br />
    That is basically the same in all Windows versions.

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • TS1967 When trying to recover a lost iTunes library file, the programme moved all the normal contents of iTunes folder to the desktop. Now what must I do?

    When trying to recover a lost iTunes library file, the programme moved all the normal contents of iTunes folder to the desktop. Now what must I do? There is no iTunes Library.itl file. On the desktop it is labelled iTunes Library.xml. Several others files have appeared there too including iTunes Music Library.xml
    Before I can use the programme is it necessary to take another step?
    Thanks for advice.

    Don't worry. I'm all for caution. I guess I should have asked a little more about what steps you took while trying to recover your lost library?
    The permissions thing may be a red herring, but if there is a problem with file access rights to the designated media folder iTunes has been known to place files on the desktop instead since it can access this location. The most common cause for such problems is working with a folder on an NTFS drive via a differnt account or on a different computer. In the normal course of events folders created inside user profiles have limited rights for other users.
    Here are the typical layouts for the iTunes folders:
    Normally the iTunes folder will be created at <User's Music>\iTunes with the media folder inside it. The library files should all appear in the same place so your comment about there not being an iTunes Library.itl file is confusing. Is it just the case that the .itl extension is hidden? The two .xml files makes sense from the above and indicates that the active library is not in <User's Music>\iTunes, but you have a recovered file from when it was.
    If, in fact, the situation is that your desktop is acting as the main iTunes folder, and contains the library file, Album Artwork, iTunes Media and (optionally) Previous iTunes Libraries folders, with all other content being inside the iTunes Media folder, then it should be relativly easy to rearrange your into the correct shape and move them to the correct location.
    If things are more complex, with something other than a library folder containing a media folder, then reestablishing the normal order is more complicated. The iTunes consolidate function is used to bring copies of files stored outside of the media folder into the media folder. It may sometimes be needed as part of the process of tidying up, however it leaves behind originals. There are circumstances where there isn't room for two complete sets of the media files on the same drive which is why I suggested the script might be useful as it produces the same results for the library without leaving the originals for manual clear up.
    I think before you do anything however, we should get a clearer picture of exactly what is where. Could you perhaps take a screenshot of the desktop and post it here? Take a look at this post on making a split library portable. The same techniques I outline there can be used to lick your library into shape, it is just a question of working out which to use in which order for the best effect.
    tt2

  • After reïnstalling Sygic Europe I don't get to download the map content. Does anyone have the same problem?

    After reïnstalling Sygic Europe I don't get to download the map content.
    Does anyone have the same problem?

    Hi, I have the problem too. Did you find a solution ?

  • I just restored my ipod and the power button works, as well as the home button but when I slide the unlock button it doesn't respond. Basically it is not sensing that I am touching it. I've tried restoring it and restarting it but nothing seems to work.

    I just restored my ipod and the power button works, as well as the home button but when I slide the unlock button it doesn't respond. Basically it is not sensing that I am touching it and I can not get out of the home screen. I've tried restoring it and restarting it but nothing seems to work. I've tried everything, is there anything I can do myself to fix it?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • How to: all the cell content to show up when printing (or saving to PDF)

    Hello, everyone!
    On my website, I export data to a "CSV" file, but all it does is come up with all the data like this:
    "AAAAA" , "BBBBB" , "CCCCCCCCCCCCCCCCCCCCCCCCCCC" , " "2010-02-01 07:39:13" , "DDDDDDD"
    What I do is select all, and save it into a .csv file, which is fine.
    However, how do I get Numbers to open this .csv file and ORGANIZE it so that when I go to print it and open in Preview, all of the info actually shows up??
    For example, the field "CCCCCCCCC" is for comments, thus can be long. When I open the file on Preview, not all of it shows up. It shows maybe a first line, and the rest is 'hidden'. So, I need numbers to automatically adjust the size of the cells according to the size of the content, so that all the info shows for when I go print it (or even save it as PDF).
    I need this file in print.
    How do I organize/fix this??
    (I'm obviously not very versed in Numbers or Excel)
    Thanks so much for your help!
    Message was edited by: diafiro
    Message was edited by: diafiro
    Message was edited by: diafiro

    Two ways I can think of:
    Select the column (click on the column letter). Up on the toolbar click the "wrap" checkbox. After doing that and while the column is still selected, increase the width of the column to your liking.
    Or select the column then go to the Table Inspector and where it says "column width", click on "fit". This probably is not what you want because it will expand the column so all text fits on one line.
    One other thing you may also want to do is go to Print View and reduce the size of the contents (i.e., your table) so it fits on one page or at least to the width of a page.

  • How to make text in the cell center(upper and down) of the table

    As attached, the text in the column head of the table is near the upper edge.
    Is it possible to make the 'abcd' in the center of the cell, thanks. 
    Attachments:
    ss.jpg ‏6 KB

    select the table contents and do the above

  • How to make bookmark tree open dynamically when moving in the content?

    Intro: When viewing a PDF-file with a bookmark tree, I can unfold(open) nodes in the bookmark tree and make the view window jump to the corresponding destination.
    If the bookmark tree is open (unfolded) I can observe a selection mark moving downwards in the bookmark tree as I move down in the content.
    Question: Is it possible to make the folded bookmark (outline) tree open dynamically as I move down in the content? I would like to see the bookmark tree unfold automatically and move the highlight to the bookmark (outline) node for the bookmark position nearest to (above) the view point in the content window.

    Dave,
    thank you for quick and precise answer.
    Magne

Maybe you are looking for

  • How to upload file from java client to php

    hi i am trying to upload/send a file from client using swing/applet and receiving it with php code. here is the php code which uploads the post file from the client $uploaddir = "/home/raghavendra/Documents/"; $file = basename( $_FILES["uploadedfile"

  • Data struck in R/3

    Hi gurus, I am extracting data from r/3. I have missed some records in data packet.but delta was successful.but report is giving wrong due to missing records.how to extract those particular records in to target from r/3. please treat as urgent. priya

  • Steps to create a Network!

    Hello guys! I have a road table... And I created 2 tables: node_topo and link_topo, using scripts from lucvanlinden: Re: Spatial Network constraints Everthing is all right, but I stucked now... What is the next step ? In the end I need calculate the

  • Entity object not found

    JDeveloper 10g EJB testing on standalone OC4J exception java.ejb.ObjectNotFoundException followed by: myEJBHome_EntityHomeWrapper13.finderMethod(). The Servlet has performed the initial.lookup for the bean successfully and is accessing a finder metho

  • Photoshop/CS6 Crashing VC++ Error

    Every once and a while photoshop will stop working and shut down and generate the following error in the event log: Faulting application name: Photoshop.exe, version: 13.0.1.34, time stamp: 0x5269b25c Faulting module name: MSVCR100.dll, version: 10.0