JCombox custom size (reduced width) and popup size default (full width)

Hi there ppl,
Could somebody help me out of this pot hole? I have a JComboBox that has a reduced width:
combo.setPreferredSize(new Dimension(100,25);
but I want the popup to have a default size so it shows the full width of all the combo items.
Thanks.

Check out these [url http://www.senun.com/Left/Programming/Java_old/Examples_swing/SwingExamples.html]ComboBox Examples.

Similar Messages

  • Can we custom set workflow throttle and batch size in Office 365 SharePoint online ?

    Hi All,
    I am new to sharepoint online administration. I want to know that can we custom
    set workflow throttle and batch size in Office 365 SharePoint online ?? likewise we were able to do in SP Farm environment using stsadm cmdlets.
    Can we use SP Online management shell to do the same ?
    Please help !!!

    Thanks for the reply...
    But then how can I optimize my workflow against these properties in Sharepoint online site environment  ?
    Throttle
    Batch size
    Timeout
    Workflow timer interval
    AutoCleanUpDays ()
    refer : http://www.codeproject.com/Articles/251828/How-to-Improve-Workflow-Performance-in-SharePoint

  • Reduce icon and cursor size

    My cat sat on the keyboard of my mac book air (nice and warm) and now my cursor is the size of my hand and I can't make anything out to navigate to a screen to resolve it. Is there a number combination of keys that I can press to restore to normal size? Thank you

    Welcome to the Apple Support Communities
    To restore the cursor size, open System Preferences > Accesibility > Mouse & Trackpad, and reduce the cursor size. In some cases, you can see "Universal Access" instead of "Accesibility", so select Universal Access if you don't see Accesibility option

  • ScrollPane fill width and preferred size

    I suspect this is going to end up as a feature request, but does anyone know if there is an existing way to have a ScrollPane stretch its content if the available space is greater than the preferred size of the content, but also not shrink the content if the scrollpane is smaller than the preferred size of the content?
    If we have this simple example:
    public void start(Stage stage) throws Exception
        BorderPane contentPane = new BorderPane();
        contentPane.setPrefSize(400, 300);
        contentPane.setStyle("-fx-background-color: blue");
        ScrollPane scrollPane = new ScrollPane();
        scrollPane.setContent(contentPane);
        Scene scene = new Scene(scrollPane, 800, 600);
        stage.setScene(scene);
        stage.show();
    } When the window is big, our content pane is left at its preferred size with white space around it and no scroll bars showing. When the window is small our contentPane is still at its preferred size with scrollbars on it and no white space. Much as we'd expect.
    If we add this line of code:
    scrollPane.setFitToWidth(true);Then when the window is big then our contentPane is stretched nicely to fill the available space. When the window is small, the scroll bars don't kick-in (effectively scrolling is turned off) and the contentPane is shrunk to fit the available space.
    What I'd rather have is when the window is small we get scrolling, when the window is big, we get stretching. Possible?
    Cheers,
    zonski

    It is actually possible to do this in markup as well. For example, the following markup creates an observable array list and attaches a controller-based change event handler to it:
    <FXCollections fx:factory="observableArrayList" onChange="#handleListChangeEvent"/> The controller method should look something like this:
    @FXML
    protected void handleListChangeEvent(ObservableListChangeEvent<?> event) {
        // Handle the change event
    }[edit] Note that ObservableListChangeEvent is currently a private class - please feel free to submit a feature request to make this class public if you would like.

  • Dimension Filter - Dynamic popup size?

    Hi,
    I have a small problem.
    One of my dimension filters have a hierarchy dimension assigned. Depending on the expansion of the preferred hierarchy selection, the user cannot see the whole text.
    I know that I can change the size of the Dimension Filter with the settings Popup Width and Popup Height, but is it somehow possible to change the size dynamically depending on the expansion of the hierarchy?
    Br
    Max Rosén

    Hi Max,
    As far as I know there is really no such setting in Design Studio that would enable that.
    There is also no way how to achieve this with the available scripting methods, if there would be something it would be in theory something like this:
    In the OnChange Event of the table cell width where the hierarchy is or based upon the expand level state of the hierarchy in the filterpanel, adjust the width of the filterpanel and the width of the table cell where the hierarchy is.
    There should be a solution to do this via javascript, but for that you would need to use the sdk to include some custom javascript code into your bi app.
    Normally your requirement can be achieved with/through css, there is a method/way that causes the width of the parent container to expand/adjust automatically when the width of the child element changes. But the problem/difficulty here is, that the filterpanel is created with a lot of absolutely positioned divs (containers) here and there and thus several stacking contexts are created and thus a change in one stacking context has no effect on an element which is in a different stacking context - a change in the width of the table cells where the hierarchy is placed has no effect on some other higher/previously positioned parent container elements because they are in different stacking contexts and when a container's width isn't adjusted too, the inner child element has no way to expand and still be/remain visually nice as a whole.
    Anyway, so far I didn't help you much, so here is something you could use to make the text visible/readable without expanding the width:
    /* Make Long Text (in Hierarchy) in Dimension Filter Visible (Break Into a New Line) */
    #sap-ui-static .sapzenfilterpanel-PopupContainerDialog div.sapUiTableCnt div.sapUiTableCCnt table.sapUiTableCtrl tr.sapUiTableTr > td:nth-child(1),
    #sap-ui-static .sapzenfilterpanel-PopupContainerDialog div.sapUiTableCnt div.sapUiTableCCnt table.sapUiTableCtrl tr.sapUiTableTr > td:nth-child(1) span.sapzenfilterpanel-SelectionTableText {
      white-space: normal;
      /* Optional setting: break to newline anywhere in a word */
      /*word-wrap: break-word;*/
    (Note: you can simplify/adjust the selectors, this is not the only way how the selectors must look like, it is just an example, but working example...)
    A side note when using the setting: "Member Display: Text and Key"
    The Dimension filter has 3 columns: 1. Text , 2. Key , 3. Check(boxes)
    where the first 2 columns for text and key are the same width. But usually the key is shorter than the text and doesn't need so much space, so you could adjust the width proportions of these first 2 columns so that the text has more width than the column containing the keys:
    /* Make Text Column Wider and Key Column Narrower */
    div.sapUiTableCnt div.sapUiTableColHdrCnt div.sapUiTableColHdr > div:nth-child(1) {width: 207px !important; /* Default Popup width: 350px > 147px , 147+60=207 */}
    div.sapUiTableCnt div.sapUiTableColHdrCnt div.sapUiTableColHdr > div:nth-child(2) {width: 87px !important; /* Default Popup width: 350px > 147px , 147-60=87 */}
    div.sapUiTableCnt div.sapUiTableCCnt table.sapUiTableCtrl tr.sapUiTableCtrlCol > th:nth-child(1) {width: 207px !important; /* Default Popup width: 350px > 147px , 147+60=207 */}
    div.sapUiTableCnt div.sapUiTableCCnt table.sapUiTableCtrl tr.sapUiTableCtrlCol > th:nth-child(2) {width: 87px !important; /* Default Popup width: 350px > 147px , 147-60=87 */}
    Regards
    David

  • What is the relation between FetchSize and Range Size

    Hi
    What is the relation between FetchSize ("in batches of" field) and Range Size in view object tuning section? What would happen if, for example, I set the fetch size to 10 and range size to 5?
    Ferez

    Timo,
    From oracle’s documentation we learn that RangeSize attribute of the Iterator “controls the number of records ADFm requests from the BC layer simultaneously”
    RangeSize Tuning
    This parameter controls the number of records ADFm requests from the BC layer
    simultaneously. The default RangeSize is 25 records. Consider setting this value to
    the number of records to be displayed in the UI simultaneously for the View Object so
    that the number of round-trips between the model and BC layers is reduced to one.
    This is configured in the Iterator attribute of the corresponding page's page
    definition XML.
    and the purpose of FetchSize  is now clear for me but let me ask another question about VO’s rangeSize which you told is used when we use range paging. You mean that when we use range paging so the rangeSize of VO is used to fetch data from database and the FetchSize is ignored in this case? Please correct me if I am wrong.
    Ferez

  • Column widths and gutters

    I would like to have variable column widths and gutters. At present (Acrobat 6 running under XP Prof. SP3) although I can choose the number of columns, and hence the number of gutters, all columns must be the same width and all gutters the same width.

    What does your question have to do with Acrobat? Acrobat is not an editor.

  • How to calculate actual selection or group width and height with clipping

    If a group has clipping paths then the height and visible bounds will include the dimensions of all paths selected including the clipped or hidden paths.
    However, the width and height shown on the width and height of the AI detail boxes for the selection shows just the visible dimensions.
    I want to retrieve the same values that is shown on the screen when a group is selected.
    It is somewhat counterintuitive that the "visiblebounds" property does not show just what is visible.
    I'm scaling the visible content of a selection to fit within another path but I need to be able to calculate the dimensions of the only what is visible after clipping.
    What do you have to do with scripting to get these values? Go through all of the path items in a group recursively and save the min and max values of any visiblebounds for clipping paths? Any better alternatives that I don't see?
    Thanks for any help!

    I ended up using the visible bounds for both scale and position as I also discovered that attempting to position a group with the position method would also result in missing the mark. The top and left (x,y) bounds I calculated without the clipped dimensions needed to be used to offset the actual position where I wanted the visible paths to be displayed.
    The functions I used ended up looking like so:
    function GetPoints(dblInch)
         var dpi = 72;
         return dblInch * dpi;
    function getRealVisibleBounds(grp) {
         var outerBounds = [];
         for(var i = grp.pageItems.length - 1; i >= 0;i--)  {
              var bounds = [];
              if(grp.pageItems[i].typename == 'GroupItem') {
                   bounds =  getRealVisibleBounds(grp.pageItems[i]);
              else if((grp.pageItems[i].typename == 'PathItem' || grp.pageItems[i].typename == 'CompoundPathItem')
                   && (grp.pageItems[i].clipping || !grp.clipped)) {
                   bounds = grp.pageItems[i].visibleBounds;
              if (bounds.length > 0) {
                   outerBounds = maxBounds(outerBounds,bounds);
         return (outerBounds.length == 0) ? null : outerBounds;
    function positionVisible(grp,x,y)
         var bounds = getRealVisibleBounds(grp);
         var newX = GetPoints(x) + (grp.left - bounds[0]);
         var newY = GetPoints(y) + (grp.top - bounds[1]);
         grp.position = [newX,newY];
    function maxBounds(ary1,ary2) {
         var res = [];
         if(ary1.length == 0)
              res = ary2;
         else if(ary2.length == 0)
              res = ary1;
         else {
              res[0] = Math.min(ary1[0],ary2[0]);
              res[1] = Math.max(ary1[1],ary2[1]);
              res[2] = Math.max(ary1[2],ary2[2]);
              res[3] = Math.min(ary1[3],ary2[3]);
         return res;
    and were called like so:
    var doc = app.activeDocument;
    if (doc.selection.length > 0) {
         var grpOriginal = null;
         if(doc.selection.length == 1 && doc.selection[0].typename == 'GroupItem') {
              grpOriginal = doc.selection[0];
         else {
              grpOriginal = doc.groupItems.add();
         doc.selection = null;
         if(grpOriginal.layer.name != 'approval') {
              grpOriginal.move(doc.layers['approval'],ElementPlacement.PLACEATEND);
         var artBounds = getRealVisibleBounds (grpOriginal);
         var artWidth = artBounds[2] - artBounds[0];
         var artHeight = artBounds[1] - artBounds[3];
         var imprintHeight = GetPoints(0.625);       // 0.625 is new height, hardcoded for demonstration
         var imprintRatio = imprintHeight / artHeight;
         var section = doc.layers['sectionLeft'];    // section where I placed the art
         var grpArt = grpOriginal.duplicate(section,ElementPlacement.PLACEATEND);
         grpArt.resize(100.0 * imprintRatio,100.0 * imprintRatio);
         grpArt.move(section,ElementPlacement.PLACEATBEGINNING);
         grpArt.selected = true;
         positionVisible(grpArt,0.0,16.75);          // x & y hardcoded for demonstration
    else {
         alert('artwork needs to be selected');
    I'm new at this so are there any better options to do these things?

  • Mobile layout : a stange Issue when making elements full width

    I started to play around with the mobile features in adobe muse but I seem to be getting some strange issue.
    Not Stretching the elements to full width - all fine
    Stretched to full width and I get this added "padding" not sure why
    I was trying to re-create this:
    http://blogs.adobe.com/muse/2012/12/11/create-super-widgets-in-muse-the-expanding-mobile-m enu/
    Thanks
    Daz

    Hi Daz, This might be a bug in our Preview Mode. Do you see the same behavior on the actual phone? You can publish to a free trial site, by clicking Publish to test it on your phone.
    Let me know.
    Thanks
    Noam

  • Firefox 3.6.3 - ebay pages are centered, do not display full width of screen

    Upgraded to Firefox 3.6.3 and my ebay pages are centered and do not display full width of screen as they did in the previous version. Most other pages will automatically adjust to the full width of the screen
    == This happened ==
    Every time Firefox opened
    == Firefox 3.6.3 upgrade

    See if anything here helps you. <br />
    https://support.mozilla.com/en-US/kb/Images+or+animations+do+not+show

  • Tablet Design Mode : Full width stretching doesn't work

    I've had this issue before and it seems to not be going away. In Tablet mode when I try to create a box of any sort and stretch it to both ends of my design to ensure its seemless (full width / full screen) it works ... but Once I try to add 2 or more of these on a single page all of the sudden Muse decides to shove all my content to the left.
    I can't seem to even set a header and footer background box full width to more than one object. So if I make sure other objects are set at 767 (1px less) it will work fine again.. just can't do more than 1 at 768px! I've even had to trick Muse by making my objects set at 767px wide with a 1px border only on the right to get rid of the 1px space and hide it with a choice color.
    This used to happen in mobile design mode earlier this year but was eventually fixed with an update. What has it started again in Tablet? Do I need to re-install?

    So you're compiling your movie as ActionScript 3.0 (AS3)?
    What are you using to play the video? The FLVPlayback component?
    You might need to dynamically place your FLVPlayback instance on
    the stage with code, rather than manually placing it on the
    timelne/stage. (Also, check to make sure that you're not using
    duplicate names for instances of movieclips, textfields, etc. on
    the stage--the error message is indicating that it can't create a
    property, and that might be because something else is creating the
    same named property.)

  • Patch 8.0.1 negates custom popup size [RH8 html, Webhelp]

    I installed RH8 patch 8.0.1, and am finding the custom pop-up sizes I set are no long in effect.
    Per our approach, we insert an image into its own html topic.
    The image is then called as a pop-up in a step-by-step topic.
    Prior to the patch, the pop-up window size was 5-8 pixels taller and wider than the image and displayed with a nice white margin:
    Pop-up settings for this image: Display in custom sized pop-up
    Following the patch installation, the pop-up defaults to a scrolling window, irrespective of the custom window size.  i.e.  I tested custom sized pop-ups that were 5 - 15 pixels larger than the image width and height dimensions, and all resulted in the same size window, with scrollbar, as shown here:
    What can I do to recover the image pop-up displayed without scrollbars?

    Peter,
    I'd given up on this problem and uninstalled the 8.0.1 patch.   We have 1265 image topics, with multiple pop-up instances for each image topic.  I need a correction for every custom-sized pop-up.
    I can see the decision not to install the upgrade was short-sighted, however, as the next patch 8.0.2 is critical if we hope to have a stable project.
    How would I use search and replace to revise 1265 custom pop-up sizes?  Can you demonstrate given the example above?  The image is 200x135.  The pop-up size in the existing project is 205x140.  With the new patch, the pop-up size needs to be 213x158.  What do I use as a search term in a mass search and replace to avoid fixing one pop-up at a time? Surely you don't suggest I find the code and do the mental math to add 13 and 23 to the original dimensions for 1265n pop-ups?  Sorry if I'm missing the obvious.
    Is there any chance I can use search and replace to modify the html to insert something like, scrollbars=no, instead?
    On another tact, external research suggests the scrollbars disappear in Internet Explorer if I work with the css properties governing scrollbar colors, as referenced here so the color matches the background window color.
    From http://www.webdevelopersnotes.com/tips/html/transparent_hidden_scrollbar_code.php3 :
    Here are the cascading style sheet properties once again.
    Note: These properties are recognized by Internet Explorer (5.5 and above) and are ignored by FireFox, Opera and Netscape.
    scrollbar-track-color: Sets the color for scroll bar track
    scrollbar-face-color: Sets the color for the scroll bar slider
    scrollbar-arrow-color: Sets the scroll bar arrow color
    scrollbar-3dlight-color: Sets the scroll bar 3D light color
    scrollbar-highlight-color: Sets the scroll bar highlight color
    scrollbar-shadow-color: Sets the scroll bar shadow color
    scrollbar-darkshadow-color: Sets the scroll bar dark shadow color
    Any help is appreciated!

  • Customizing Paging File: what is the recommended initial and maximum size?

    Hi everyone, and Harm,
    Following Harm's response to my question about how to setup disks, Harm said this:
    "disk allocation: It is a three stage process, first you define the boot order in the BIOS, then you format the disks inWindows and allocate drive letters, then still in Windows you setup the pagefile. Then the allocation of media cache, preview, project etc. is done in the preferences and project setup of PR."
    and I have a question about paging file.
    First let me say describe my new machine, it has a 4 disc setup, no RAID, 16GB RAM, with OCZ-Vertex3 for OS & Programs, i.e. i have installed Windows 7 Ultimate 64bit on this disc, and Web Premium CS5 and Acrobat Pro 9. In BIOS, i have made the OCZ (OS) disk, be the priority in the Boot order.
    Later, after verifying the system is in working order, i will upgrade to Classic Collection CS5.5, so at this point, i have named my 3 additional disks as such,
    WDC WD 2002FAEX-007BA0 - "Media Projects(D)"
    WDC WD 1002FAEX-00Y9A0 - "Pagefile, Media Cache (E)"
    WDC WD 1002FAEX-00Y9A0 - "Previews, Exports(F)"
    So, for now these are simply names, which i have given to the various disks, and now i am changing the paging file, switching it from happening in the OS disk, in order to happen inthe disk which (via Premier, later) will be designated for Media Cache.
    So, in Windows Performance Options pane, I went to Advanced tab, & under Virtual memory I hit "change", uncheck Automatically manage paging file size for all drives, select drive E, which is the disk that's to have the paging file happen in it.
    And the question, assuming that i am supposed to select Custom size, can you Harm, or/and others, please recommend the Initial and Maximum sizes?
    Or, should i select "System managed size"?
    Thanks:)

    http://lifehacker.com/5426041/understanding-the-windows-pagefile-and-why-you-shouldnt-disa ble-it
    Keep in mind Video/Animation applications use more ram now than almost any other type and there are far more memory hungry services running in the background as well. Consider the normal recommendations are for standard applications. HD material changed far more than just the need for 64Bit memory addressing.
    Eric
    ADK

  • When i open a new document, my "width" and "lenght" add two zeros automatically to file size??? For example basic A4 size in mm is 210 00mm x 297 00mm? And i can´t do nothing about it! Why on earth?

    When i open a new document, my "width" and "lenght" add two zeros automatically to file size??? For example basic A4 size in mm is 210 00mm x 297 00mm? And i can´t do nothing about it! Why on earth?
    This "error note" must have something to do about it?

    elppaelo,
    You may try the list.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • In InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to

    This may be a basic question... but in InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to determine what word count we can fit in, and c) how to do it in a table? Thanks!

    Set your ruler increments to pixels Preferences>Units & Increments. You can fill the text box with placeholder text Type>Fill with Placeholder text and get a word count from the Info panel with Show Options turned on from the flyout.
    From the Transform panel you can set a text box's width and height

Maybe you are looking for