Dynamic increase of width of window

Hi Friends,
I am working on swings, in that I have a window which displays some text in the JTextArea. My problem is, according to the size of the text the window width should also increase (keeping the height as constant). ie if a small text is to be displayed then window size will be small, if text is huge then only width will be increasing automatically
Please help me....

[http://forums.sun.com/thread.jspa?threadID=721804&messageID=4163543]

Similar Messages

  • How to Increase the Selection screen window length width big....

    How to Increase the Selection screen window length width big....  I cant able to do some enter text... because of the window size it gives error... can anyone help me out this...
    Thanks in advance

    hi,
    Maximum size is fixed for selection-screen.
    Split your text into different lines to fit it.
    Create a text element for your text and write it as comments.
    selection-screen begin of block b3 with frame title text-041.
      selection-screen begin of line.
        parameters : p_all radiobutton group g2 default 'X'.
        selection-screen comment 10(75) text-049.
      selection-screen end of line.
      selection-screen begin of line.
        parameters : p_iloc radiobutton group g2.
        selection-screen comment 10(75) text-050.
      selection-screen end of line.
    selection-screen end of block b3.
    Regards
    Sailaja.

  • Increasing the width of Pivot table Columns

    Hi Gurus,
    Small pivot table --> ( ie having less no of columns which generally can be seen in a single page without scrolling to the right)
    If i have a small pivot table , then in the column properties through additional formatting options i can increase the width of an individual column.
    However if the pivot table is Big,I am not able to increase the width of the individual column .
    I tried setting width in the additional formatting options in the Content Properties( just above Rows and below Section there is a small grey box containing finger).
    Now the Content Properties indeed increases the width of the column, but it also increase the width of the whole Pivot Table.
    See...If i have a fixed number of columns in a PIVOT Table that do not change with prompt, then this solution work fine...
    but the problem comes when the no of columns in pivot Table reduces based on the prompt selected.
    In this case the less no of columns tries to occupy the whole width set in the content properties.
    In short, with Content Properties the width of the PIVOT Table becomes fixed, irrespective of the no of columns coming.
    Also after setting content properties, I am not able to print the report to PDF.
    So the Question is... Can we increase the width of a Big Pivot Table whose no of columns keeps on changing based on the prompt....
    Big pivot table -->
    (ie table having no of columns which exceeds a single window frame and have to scroll to right to see the rest of the columns)
    I hope i have not made things messy...
    Thanks
    Ashish

    Ashish,
    Yes, you can set a fixed size for these. I'm sure you are fixing these because of PDF issue which might be irregular in sizes. Just play arnd with Custom CSS options.

  • How to increase the width of the column in Tableview

    Hi ALL,
    How to increase the width of the column in tableview?I have name column where big name is displaying in rows.Does any one have any idea how to increase the width of the column dynamically in tableview.Please respond its little urgent.
    Thanks in advance

    Hi Peter,
    Here is my Dynpage
    package com.ust.jcatotable;     
    import java.awt.Event;
    import javax.resource.cci.MappedRecord;
    import javax.resource.cci.RecordFactory;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.functions.IInteraction;
    import com.sapportals.connector.execution.functions.IInteractionSpec;
    import com.sapportals.connector.execution.structures.IRecordSet;
    import com.sapportals.htmlb.DropdownListBox;
    import com.sapportals.htmlb.event.TableNavigationEvent;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.portal.prt.component.IPortalComponentContext;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    public class Display extends PageProcessorComponent {
      public DynPage getPage(){
         return new DisplayDynPage();
    public static class DisplayDynPage extends JSPDynPage{
         private Object formatFlag;
         public static IConnection connection ;
         private IPortalComponentRequest request;
         private IPortalComponentContext context;
         private IPortalComponentProfile profile;
         private IPortalComponentResponse  response;
         private int visibleRow=1;
         TableBean myBean;
         public void doInitialization(){
                   response = (IPortalComponentResponse) this.getResponse();
                   request = (IPortalComponentRequest) this.getRequest();
                    context = request.getComponentContext();
                    profile = context.getProfile();
                    IPortalComponentProfile profile = context.getProfile();
                    Object o = context.getValue("myBean");
                    if(o==null || !(o instanceof TableBean)){
                       myBean = new TableBean();
                       setBeanFromProfile(profile, myBean);
                       context.putValue("myBean",myBean);
                     }else {
                       setBeanFromProfile(profile, myBean);
                        myBean = (TableBean) o;
                    this.getData();
         public void myOnNavigate(Event event) throws PageException{
              TableNavigationEvent tne = (TableNavigationEvent) event;
              this.visibleRow = tne.getFirstVisibleRowAfter();
              if(myBean!=null)
              myBean.setVisibleRow(new Integer(this.visibleRow).toString());

  • Dynamically setting column width doesn't work all the time

    I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
    Is this a Java bug or what?
    public void componentResized(ComponentEvent ce)
         try
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              // Again, or it won't work:
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
         catch(SQLException e)
    }

    Is it possible that your call to
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    is altering the response created by
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    ? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
    Good luck... :)

  • How to increase the width of the drop down list box in SSRS multi value parameter

    Hi,
    I am using SSRS 2012. I have a parameter, which accepts multi value.
    The width of the drop down list box is very small, and the user need to scroll to the right to view the complete view of the content in the list box. But, if I don't use multi value then the length is good.  Kindly suggest how to I increase the width
    of the list box when it set to multi value parameter.
    Thanks in advance,
    Mahalengam Arumugam

    Hi Mahalengam,
    After testing the issue in my local environment, I can reproduce it. When the values for a single parameter are too long, the drop-down list of the parameter will automatically enlarge to an appropriate size. While the values for a multiple parameter are
    too long, we need to scroll to the right to view the complete view of the content in the list box in SSRS 2008. But in SSRS 2008R2 and SSRS 2012, we can directly drag the black control at the bottom of the list box to control the size.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support
    Hi Katherine,
    Thanks for your reply. I understood we need to drag the list box to a maximum size to view the contents.
    But, this seems an additional task, i know this is a limitation in the current version of SSRS and hope it will be resolved in the next versions.
    Thanks for your efforts,
    Mahalengam Arumugam

  • How to increase the width of the Fluid Grid Layout from 1008px to 1080px?

    Good day all, I'm experiencing a slight problem with Fluid Grid Layout in Dreamweaver CS6. I want to increase it's width so that it could be one with my Photoshop CS6 design (which is 1080px), the problem is that I can't as I am limited to 1008px. How do I increase the width? I ultimately am re-coding my design as my client demanded a responsive design but I'm clueless in that avenue which is why I resorted to re-doing everything under the set & safe default (Fluid Grid Layout) that doesn't require me to udnderstand media queries at an expert level.  

    While Fluid Grid Layout can save you some production time, you still need a good understanding of CSS Media Queries to use it.
    Introduction to CSS Media Queries
    http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-que ries.html
    CS6 Fluid Grid Layouts (6 min video)
    http://tv.adobe.com/watch/digital-design-cs6/creating-adaptive-designs -using-fluid-grid-layouts-in-dreamweaver-cs6/
    CS6 Fluid Grid layouts (17 min video)
    http://tv.adobe.com/watch/learn-dreamweaver-cs6/using-fluid-grid-layou ts/
    Step-by-Step tutorial -- Building Fluid Grid Layouts in DW CS6
    http://www.adobe.com/inspire/2012/08/fluid-grid-layouts-dreamweaver-cs 6.html
    Instead of fixed-widths in pixels, FLG code is all % based.  It starts with the mobile layout and cascades to tablet, then desktop.  If you want to use fixed-widths in pixels, you must manually change the CSS code for all three devices.
    Nancy O.

  • How to increase the width of Panel Tabbed layout

    How to increase the width of detailed items of a Tabbed Panel ? I have many columns inside a detailed item of tabbed panel i can see only 3 colums ,to see the rest of the column i need to scroll. I tried to set the width but doesnt seems to be working
    <af:panelTabbed id="pt2" inlineStyle="width:800.0px;">
    <af:showDetailItem text="Interview" id="sdi1"
    inflexibleHeight="50"
    inlineStyle="width:800px; border-color:Aqua; border-width:thin;"
    styleClass="AFStretchWidth">
    Is there any way to increased the width of showDetailItem of panelTabbed ?
    Thanks

    Make sure the stretchChildren property of the shoDetailItem is set to first.

  • Dynamic message with Alert popup window?

    I'm using the simplest form of Alert popup window. Is there a way I can put a dynamic alert message in the window? For example,
    the Alert shows the "XYZ" at beginning, and then change to "ABC" by an event before the OK button is clicked.

    First you need to create a refernce to the Alert window.
    alert  = Alert.show("Hello");
    To change the text
    alert.mx_internal::alertForm.mx_internal::textField.text = "New Text";
    ( had to use mx_internals because the following code is not updating the text alert.text = "New text"; )

  • How can I get the width of window?

    Hi. I would like to get the width of window on IE.
    If on Netscape, I can use "window.inner(outer)Width".
    However, I don't know what to do with IE.
    I am sorry that this question might be very begginer.
    Thank you,

    and this is not a question taht in belongs in this forum! it is a IE/IE.Script question. perhaps you find an answer here: http://developer.irt.org/script/window.htm

  • Obiee 11g graph how to increase bar width

    Hello,
    obiee 11g: -> bar graph: how to increase bar width ?
    Thank you,
    Ark

    Hi ,
    Create your own bar code type rather than using system Bar Codes , if the length of your code doesn't fit with the standards available under  SE73 . There you can define your own sizes as per your requirement , If you have a stands logic ,for example production order type Z001 should be in 15 lengthy code , then put a condition in the smart form to facilitate it , like wise you could use different lengthy bar codes in single form .
    I hope this is what you meant by your treat.
    Good Luck .
    Cheers ,
    Dilum

  • How to increase the size of window in virtual tool box

    Hi,
    I have install rhel5 in oracle virtual box... but the size of window in which rhel5 runs is small and it is not covering the entire area of virtual toolbox....
    How can i increase the size of window to full size...
    Thanks and Regards...

    You need to install the "kernel-devel" and "kernel-headers" packages and then choose "Install Virtualbox Guest additions" from the Virtualbox menu, while logged in as root, in order to install the appropriate video driver that will allow you to resize the screen.

  • Increase the width of browser drop down display

    Hi All,
    I am displaying a list of items which are lengthier in browser. Is it possible to increase the width of displaying dropped down list, by keeping the actual width of the browser static??
    Regards,
    Ravi Kumar

    Hi Ravi
    I tried but could not get any option. I dont think so we can increase only the width of display area of the browser list, but not the width of browser itself.
    We need to increase the width of browser,then only display area also will increase.
    If you found, then you can share.

  • Has any body tried increasing the width of editable dropdownbox

    Hi,
    Has any body tried increasing the width of editable dropdownbox.
    anyway i will be attempting it soon.
    If anybody has done it please guide me.
    Thanks.

    After overriding findByKey and not calling super if the passed Key is null, I found another error; BC is trying to update the PK of type DBSequence - JBO-27008 ReadOnlyAttrException. My "fix" was to override the setAttribute method in my ViewRowImpl and ignore any attempt to update the PK.
    Everything is working now and I get my JBO-27014 mandatory error messages.
    Just a side note: If I just change my mandatory field to another value, the setAttritbute method for the field gets hit just once. If I set it to blank, it gets hit 5 times for the same field and once for the PK field. The PK value being sent is always from the first row in my editable table.
    Tom
    Message was edited by:
    user556303

  • Increasing the width of scroll bar

    Hi,
    I have a table which is added to a JScrollPane and a JScrollBar is added.
    How do I increase the width of the JScrollBar?
    I have tried b.setSize..... and no luck :(
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
            JScrollBar b = new JScrollBar();
            scrollPane.setVerticalScrollBar(b);
            //Add the scroll pane to this panel.
            add(scrollPane);cheers
    bobby

    Looks like my day of posting "don'ts" <g>
    OnlyForJava wrote:
    Hi bsbiran ,
    use setPreferredSize on JScrollBar
    Beware that setting any of the setXXSize (with XX = min/max/pref) completely by-passes any size-calculation normally done by the component and/or its ui-delegate. So that's definitely not recommended. Even if it works now it sure will come back to and bite you later.
    @OP: the basic question is: Why do you want to do it? Typically, a component's pref sizing is determined internally based on some state. If you want to augment that internally calculated size, the correct way is to subclass the component, override the getXXSize and add any custom calculation.
    Cheers
    Jeanette

Maybe you are looking for

  • Need help in Conversion routines

    Hi, In table crmd_order_index <b>there is a field GUID of data type CRMD_OBJECT_GUID and domain SYSUUID which is RAW 16.</b> <b>and in the another table a thr is a field OBJKEY of data type char 70.</b> When i execute the code     <b>SELECT guid    

  • Multiple categories handled by Account tranformation in BPC NW7.5 ?

    Hi all I  am getting error message for multiple categories(Actual and Plan) in single a  CALCACCOUNT package for specific time and year.  I do have data for Actual and Plan version.  Is there any system limitation on categories in 7.5NW? appreciate y

  • Overloads SOLUTIONS

    Hi Guys, I've had like most of you, soooo many Overload messages "Disk Too Slow" etc... OK, Now listen well and do the following: 1- NEVER record Audio on you Main Drive (the one that contains the System) NEVER!!!! 2- Disable Journaling On your Drive

  • Finder crashes when Time Machine starts backup

    Hello, My finder/computer crashes at least once or twice a day when the Time Machine backups start (there are other times where the backup will go fine).  I am using a MacBook Pro, 2011 2.2 GHz i7 with 8GB of Ram.  I have a 64 GB Samsung SSD drive I

  • Help: there is a way to delete duplicate files in itune?

    every time when im importing music on my itunes is storing the files in the itunes music folder. now i have to backup this folder and the size is more than 80GB. i found that there are many duplications of songs. is there any easy way to delete dupli