Auto-resize the components of JTabbedPane with JPanels

Hi,
We have swing window with tabbed pane having two JPanels. There are couple of components (button/text
fields/JXTable/Jtree ..etc)added to each panel. so far, every thing is working fine.
Issue is, when we try to expand the winodw size, the components of each panel are static. The size of components
are not changing accorning to window size. All the components are center alligned with increasing the window size. It would be great help, if you can help on this.
Following is the sample code used to prepare  swing window.
public class SOS extends JFrame implements TreeWillExpandListener,
                                           TreeExpansionListener,
    JPanel firstPanel = new JPanel(new GridBagLayout());
    JPanel secondPanel = new JPanel(new GridBagLayout());
    public SOS() throws SQLException, ParserConfigurationException,
                        SAXException, IOException, XPathExpressionException {
        //EHDD Tabbed Pane
        nehObjectTypelist = new JList((createObjectsListData()).toArray());
        nehObjectTypelist.setFont(font);
        nehObjectTypelist.setCellRenderer(new CheckListRenderer());
        nehObjectTypelist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        nehObjectTypelist.setBorder(new EmptyBorder(0, 4, 0, 0));
        nehObjectTypelist.addMouseListener(new MouseAdapter() {
        JScrollPane nehObjTypeSP = new JScrollPane(nehObjectTypelist);
        nehObjTypeSP.setSize(200, 200);
        nehOwmerslist = new JList((createOwnersListData()).toArray());
        nehOwmerslist.setFont(font);
        nehOwmerslist.setCellRenderer(new CheckListRenderer());
        nehOwmerslist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        nehOwmerslist.setBorder(new EmptyBorder(0, 4, 0, 0));
        nehOwmerslist.addMouseListener(new MouseAdapter() {
        JScrollPane sp = new JScrollPane(nehOwmerslist);
        sp.setSize(200, 200);
        //JTree with checkbox
        DefaultMutableTreeNode root = createFirstLevel();
        final DefaultTreeModel model = new DefaultTreeModel(root);
        nehTree = new JTree(root);
        QuestionCellRenderer renderer = new QuestionCellRenderer();
        nehTree.setCellRenderer(renderer);
        QuestionCellEditor editor = new QuestionCellEditor();
        nehTree.setCellEditor(editor);
        nehTree.setEditable(true);
        nehTree.addTreeWillExpandListener(this);
        nehTree.setShowsRootHandles(true);
        nehTree.setModel(model);
        nehTree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
        JScrollPane scroll = new JScrollPane(nehTree);
        scroll.setPreferredSize(new Dimension(200, 180));
        scroll.setFont(font);
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(1, 1, 1, 1);
        gbc.gridx = 0;
        gbc.gridy = 0;
        //gbc.gridwidth = 2;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        //gbc.anchor = GridBagConstraints.LINE_START;
        JLabel nehHeading =
            new JLabel("Select your criteria and click the Fetch Topics by Criteria button");
        nehHeading.setFont(font);
        firstPanel.add(nehHeading, gbc);
        gbc.insets = new Insets(1, 1, 1, 1);
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.gridx = 0;
        gbc.gridy = 1;
        gbc.gridwidth = 1;
        JLabel nehDocType = new JLabel("Type");
        nehDocType.setFont(font);
        firstPanel.add(nehDocType, gbc);
        gbc.gridx = 1;
        gbc.gridy = 1;
        JLabel nehDocOwner = new JLabel("Owner");
        nehDocOwner.setFont(font);
        firstPanel.add(nehDocOwner, gbc);
        gbc.gridx = 2;
        gbc.gridy = 1;
        JLabel nehProdTree = new JLabel("Tree");
        nehProdTree.setFont(font);
        firstPanel.add(nehProdTree, gbc);
        gbc.weightx = 0;
        gbc.weighty = 0;
        gbc.gridx = 0;
        gbc.gridy = 2;
        firstPanel.add(nehObjTypeSP, gbc);
        gbc.gridx = 1;
        gbc.gridy = 2;
        firstPanel.add(sp, gbc);
        gbc.gridx = 2;
        gbc.gridy = 2;
        firstPanel.add(scroll, gbc);
        gbc.fill = GridBagConstraints.VERTICAL;
        gbc.anchor = GridBagConstraints.FIRST_LINE_START;
        gbc.weightx = 0;
        gbc.weighty = 0;
        gbc.gridheight = 1;
        gbc.gridheight = 1;
        gbc.gridx = 0;
        gbc.gridy = 21;
        JButton fetchButton = new JButton("Fetch");
        fetchButton.setFont(font);
        fetchButton.setSize(new Dimension(175, 35));
        firstPanel.add(fetchButton, gbc);
        fetchButton.addActionListener(new ActionListener() {
        gbc.gridx = 0;
        gbc.gridy = 22;
        JLabel nehOR = new JLabel("- OR -");
        nehOR.setFont(font);
        firstPanel.add(nehOR, gbc);
        JButton searchButton = new JButton("Fetch by Title");
        searchButton.setToolTipText("Enter title search criteria");
        searchButton.setFont(font);
        gbc.gridheight = 1;
        gbc.gridx = 0;
        gbc.gridy = 23;
        gbc.anchor = GridBagConstraints.LINE_START;
        JLabel nehOpenBySVNIdLabel = new JLabel("Open by ID");
        nehOpenBySVNIdLabel.setFont(font);
        firstPanel.add(nehOpenBySVNIdLabel, gbc);
        gbc.gridheight = 1;
        gbc.gridx = 1;
        gbc.gridy = 23;
        gbc.anchor = GridBagConstraints.WEST;
        findTextField.setColumns(20);
        firstPanel.add(findTextField, gbc);
        gbc.gridheight = 1;
        gbc.gridx = 2;
        gbc.gridy = 23;
        gbc.anchor = GridBagConstraints.WEST;
        JButton openButton = new JButton("Open");
        openButton.setFont(font);
        openButton.setPreferredSize(searchButton.getPreferredSize());
        System.out.println("Button Size" + openButton.getSize());
        firstPanel.add(openButton, gbc);
        openButton.addActionListener(new ActionListener() {
        gbc.gridheight = 1;
        gbc.gridx = 0;
        gbc.gridy = 24;
        gbc.anchor = GridBagConstraints.LINE_START;
        JLabel searchLabel =
            new JLabel("Search the repository by title word(s)");
        searchLabel.setToolTipText("Enter title search criteria");
        searchLabel.setFont(font);
        firstPanel.add(searchLabel, gbc);
        gbc.gridheight = 1;
        gbc.gridx = 1;
        gbc.gridy = 24;
        gbc.anchor = GridBagConstraints.WEST;
        searchTextField = new JTextField("", 20);
        searchTextField.setColumns(20);
        searchTextField.setEditable(true);
        firstPanel.add(searchTextField, gbc);
        gbc.gridheight = 1;
        gbc.gridx = 2;
        gbc.gridy = 24;
        gbc.anchor = GridBagConstraints.WEST;
        firstPanel.add(searchButton, gbc);
        searchButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
        gbc.anchor = GridBagConstraints.FIRST_LINE_START;
        gbc.gridwidth = 4;
        gbc.gridx = 0;
        gbc.gridy = 28;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        tableScrollPane.setPreferredSize(new Dimension(200, 200));
        firstPanel.add(tableScrollPane, gbc);
        gbc.fill = GridBagConstraints.NONE;
        gbc.gridheight = 1;
        JRadioButton reviewButton = new JRadioButton("Review");
        reviewButton.setFont(font);
        reviewButton.setMnemonic(KeyEvent.VK_B);
        reviewButton.setSelected(true);
        JRadioButton testButton = new JRadioButton("Test");
        testButton.setFont(font);
        testButton.setMnemonic(KeyEvent.VK_B);
        JRadioButton prodButton = new JRadioButton("Production");
        prodButton.setFont(font);
        prodButton.setMnemonic(KeyEvent.VK_B);
        nehGroup.add(reviewButton);
        nehGroup.add(testButton);
        nehGroup.add(prodButton);
        gbc.gridx = 2;
        gbc.gridy = 30;
        firstPanel.add(reviewButton, gbc);
        gbc.gridx = 2;
        gbc.gridy = 31;
        firstPanel.add(testButton, gbc);
        gbc.gridx = 2;
        gbc.gridy = 32;
        firstPanel.add(prodButton, gbc);
        gbc.gridx = 2;
        gbc.gridy = 33;
        JButton printButton = new JButton("Print");
        printButton.setFont(font);
        firstPanel.add(printButton, gbc);
        printButton.addActionListener(new ActionListener() {
        gbc.fill = GridBagConstraints.NORTHEAST;
        gbc.gridx = 0;
        gbc.gridy = 30;
        JButton openTopicsButton = new JButton("Open Selection");
        openTopicsButton.setFont(font);
        firstPanel.add(openTopicsButton, gbc);
        openTopicsButton.addActionListener(new ActionListener() {
        gbc.gridx = 0;
        gbc.gridy = 32;
        JButton mapLinks = new JButton("Insert");
        mapLinks.setFont(font);
        JButton relatedLinks = new JButton("Insert Links");
        relatedLinks.setFont(font);
        relatedLinks.setPreferredSize(mapLinks.getPreferredSize());
        firstPanel.add(relatedLinks, gbc);
        relatedLinks.addActionListener(new ActionListener() {
        gbc.gridx = 0;
        gbc.gridy = 33;
        firstPanel.add(mapLinks, gbc);
        mapLinks.addActionListener(new ActionListener() {
        tabbedPane.add("NEH", firstPanel);
        //NEH Tabbed Pane
        tabbedPane.add("EHDD", secondPanel);
        add(tabbedPane);
        tabbedPane.addChangeListener(new ChangeListener() {
    public static void main(String[] args) throws SQLException,
                                                  ParserConfigurationException,
                                                  SAXException, IOException,
                                                  XPathExpressionException {
        SOS sos = new SOS();
        sos.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        sos.setTitle("SOS");
        sos.setSize(760, 680);
        sos.setVisible(true);
        sos.toFront();
        sos.setMinimumSize(new Dimension(760, 680));
Thanks,
MSR.

I never use GridBagLayout.
I suggest that you change to combinations of BorderLayout, GridLayout (without "Bag"!) and GroupLayout.
bye
TPD

Similar Messages

  • How to change the components in a visible JPanel?

    How to change the components in a visible JPanel?
    Is there any way to change the components in a JPanel while it is already visible in a JFrame? I tried the na�ve approach of removing the components and adding new ones, but the effect is not the expected.
    For now I'm opening new frames with newly created panels.

    After adding/removing components to/from a panel try:
    panel.revalidate();
    panel.repaint() // sometimes this is also needed, I'm
    not sure whyI'm not certain, but I think that panel.revalidate() implicitly calls repaint() only if something actually changed in the layout. If nothing changed, it sees no reason to repaint; hence, if something changed in appearance but not in layout, you have to repaint it yourself.
    Or something like that. I'm no expert. ;)

  • Auto-resizing all components

    Is there a method that auto resizes all components on a JFrame when it is maximised for example. I have got a JTable (in a scrollpane) and some other components on a panel. I have sized the frame to be approx 80% of the screen size. When the frame is maximised, the table and the other components retain their original size (understandably so!). Is there a method available that can resize the panel and its components to resize accordingly when the frame is maximised?...I know I can add the componentListener and implement a method in the componentResized() method...but I dont want to duplicate stuff that's already available. Thanx for your help.

    I don't know the specific needs.
    BorderLayout: simple Layout; Components are oriented NORTH, EAST, SOUTH, WEST
    FlowLayout: all components are added after the other
    GridLayout: components are oriented in a grid
    GridBagLayout: complex once
    See the Java Tutorial for more information.

  • VS Exp 2013: Unable to create the Web site ... The components for communicating with FTP servers are not installed.

    I have MS Visual Studio Express 2013 It has worked fine for many months and then suddenly (I have made no configuration changes or added new programs) when I try to publish I am getting the message:
    Unable to create the Web site 'ftp://ftp.xx.xx/xxx.org.uk/www/htdocs'. The components for communicating with FTP servers are not installed.
    (I have replaced actual name with x's).
    I had a similar problem some months ago and found that saving all files, closing VS 2013 and re-starting the program fixed the problem. This time it has not.
    I am at a loss to know how to take this forwards. I do not use IIS.
    Any help would be appreciated.
    Michael.

    Hi Michael,
    For web site development, so you use the VS2013 express for web, am I right? We have to make sure that it is not the VS version issue.
    As you said that it worked well before, did you install other add-ins or tools in your VS IDE like
    Xamarin or others?
    Maybe you could disable or remove all add-ins in your VS IDE, test it again.
    please also install the VS2013 update 4 in your side.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The components for communicating with FTP servers are not installed.

    I'm running VS 2013 and when I try to publish to ftp site I get the following message. "Unable to create the Web site 'ftp://xx/'. The components for communicating with the FTP servers are not installed."   It has been running fine. I
    can publish to file system, web sites etc, just not through the ftp settings. I can access the ftp sites from my system, using other programs. It is not trying to connect to the ftp site at all.

    Hi paaccess,
    Glad to receive your reply.
    According to your description, since we can publish an application to ftp site in Visual Studio Prof 2013 in our side. Therefore, to further make sure if the issue is related to the VS IDE issue. We suggest
    you try to publish to ftp site on another machine you installed same version of VS Prof 2013 and then check it again.
    If you can publish on another machine, I suggest may need to re-download the
    VS Prof 2013 from Microsoft website and then install it again on your local machine.
    If you still could not publish on another machine, I think that the issue is not related to the VS2013 IDE issue. If possible, I still suggest you post the issue directly to the IIS.NET Forum:
    http://forums.iis.net/,
    it will better help you solve the issue.
    Thanks for your understanding.
    Have a nice day!
    Best Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to avoid auto resizing the JPanel

    I have JFrame as main window. This JFrame consist of statusbar at the bottom of the JFrame. The statusbar has implemented as a panel that uses BorderLayout. This statusbar has two JPanels as children.
    1) the first child panel(label panel) has 3 labels on it.
    2) the second child panel(image panel) has only one label with a image and this second panel is added to statusbar to the next of the first child.
    3) all panels use BorderLayout.
    If I resize the JFrame by dragging its right border (right to left) both the panels on the statusbar are auto resizing. But I don't want to resize the image panel on the statusbar. I mean even if I resize the frame the size of the image panel should not change. It has to always visible completly.
    Any help is heighly appreciated.
    Regards
    Venkat

    There could be several different ways to achieve this, but it all boils down to using appropriate layouts and/or preferredSizes.
    The Java™ Tutorials: [Laying Out Components Within a Container|http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]
    db

  • How to resize the components in a JFrame when the JFrame Resizes?

    Hi all,
    i have some problems with my app. I have set the JFrame resizable and that works fine for the JFrame but not for the components in the JFrame.
    So my question is how can i set the components in a JFrame to resize automatically when the JFrame resizes?
    Here are the important things from my code,...if you need more, just let me know, its my first post in a forum .
    Its a JFrame with a JTabbedPane and on the Tabs are Panels with buttons and Tables.
    Thank you in advance!
    public class MainMonitor extends JFrame {
    public MainMonitor() {
              super();
              initialize();
              setVisible(true);
         private void initialize() {
              this.setSize(1145, 785);
              this.setIconImage(Toolkit.getDefaultToolkit().getImage("Images/c.gif"));
              this.setContentPane(getJContentPane());
              this.setTitle("Company Manager");
              this.setResizable(true);
              this.setLocationRelativeTo(null);
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jContentPane.setOpaque(true);
                   jContentPane.add(getJTabbedPane(), null);
                   jContentPane.add(getJPanel11(), null);
              return jContentPane;
         private JTabbedPane getJTabbedPane() {
              if (jTabbedPane == null) {
                   jTabbedPane = new JTabbedPane();
                   jTabbedPane.setLocation(new Point(6, 69));
                   jTabbedPane.setSize(new Dimension(1120, 684));
                   jTabbedPane.addTab("P", null, getJPanel(), null);
                   jTabbedPane.addTab("K", null, getJPanel1(), null);
                   jTabbedPane.addTab("B", null, getJPanel2(), null);
              return jTabbedPane;
         

    Giasaste wrote:
    Thanks a lot, i didnt knew that the Layout Manager is a must.It's not a must, but it is the way to allow your app to be resized nicely and makes it much easier to maintain and enhance your program. Imagine creating a complex gui then later decide that you want another radiobutton and to remove a jlabel / jtextfield pair. with layout managers a chore becomes easy.

  • How can I resize the PDF I created with a magazine template?

    Hello! I used a template that`s a different size than what I need. How can I resize (make it smaller) the PDF that I just created with this magazine template?

    So you picked a template in A4 format, and now you need letter. The printer can scale the PDF to 11" and it will get even narrower, leaving large margins. Does it have bleeds? That woudl be a disaster.
    Frankly, the best thing is to start over using the correct page size, but you can go to File > Document Setup... in ID and change the shape of the exisiting file. Expect to do a lot of work moving and resizing objects and refitting the type.

  • Is there a way to auto resize the active buffer in vim?

    I use vim as my main code environment, and often have some vertical splits with multiple files. Is there a way that I can make it such that when I enter a  buffer and it becomes active, that it will automatically expand to at least 80c wide? And that it would also skip non-file windows like taglist?

    For options on resizing a window, type ':help ^W' for the full list.  In the meantime, play with
    Ctrl-W +
    Ctrl-W -
    Ctrl-W <
    Ctrl-W >
    Ctrl-W =
    Ctrl-W _
    As for automatically 80c, you'd might need to write a vim script or check if one already exists.
    Last edited by saline (2010-06-08 16:27:38)

  • Auto resizing of components to fit into full-screen

    hi,
    does anyone know how to autoresize components so that
    when the frame is at full-screen mode, components resize
    automatically?
    thanx =)

    Use the appropriate [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]Layout Manager.

  • JButton with auto resizing icon

    Hi,
    I want to extend the JButon in order to make it auto resize the icon image to the button size itself.
    I tried somethink like the following code and it work but there is some recursive side effect I cannot understand becouse I get a 100% CPU usage and from the print() I see the paint() method is called continuosly.
    import java.awt.Graphics;
    import java.awt.Image;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    public class IconButton extends JButton {
    private static final long serialVersionUID = 4049919355141829686L;
    int cntr;
    public IconButton(ImageIcon icon) {
    super(icon);
    public void paintComponent(Graphics g) {
    System.out.println(cntr++);
    Icon icn = getIcon();
    if (icn instanceof ImageIcon) {
    ImageIcon ii = (ImageIcon)icn;
    Image img = ii.getImage();
    img = img.getScaledInstance(getWidth(), getHeight(), Image.SCALE_AREA_AVERAGING);
    icn = new ImageIcon(img);
    super.setIcon(icn);
    super.paintComponent(g);
    Maybe there's a better way... for example by changing the icon only when the button size change: but how?
    Thank in advance,
    Carlo.

    ok,
    the question is:
    how to have a Button with the icon automatically resized to the button size? Is it right to extends JButton or is better extends AbstractButton?
    thanks.

  • Auto resize webpage?

    i have just finished my site which can be seen here www.jbpermanentcosmetics.co.uk The site looks fine on my Macbook pro on Mac and windows but it is way too large for 4:3 monitors. The site width is 1200 which in hindsight is too large really but i don't want to have to resize the whole website. Is there any HTML code which i can add which will auto resize the page to avoid horizontal scrolling?

    rossn49 wrote:
    I found the following code which looks like it might do what i want:
    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    window.location="highres.html";
    else
    window.location="lowres.html";
    //-->
    </SCRIPT>
    rossn49, you can not use that javascript. It switches between two pages/sites (I bolded the code), which means you have to add another site with narrow width.... you indicated that you wouldn't like to do that.
    However, you can find the sweet spot for your site design; many people started to design their sites for regular computer and also accommodate mobile devices such as iPhone.
    You may like to do just that, iPhone's resolution is 960px wide, so I would conservatively take it down to 900px~920px wide.
    OT, thanks for the good words... I'd not read the forum today. I'd been spending time today to figure out and mount my GPS on my new motorscooter, maybe I will buy motorscootersaurus.com for my new site. LOL!

  • Scaling / Resizing Catalyst Components in Builder

    Hi,
    I'm looking at setting up the proper workflow for a large project. We envision multiple developers and multiple designers on the project.
    The major sticking point now is scaling and resizing the components generated by Catalyst once they're in Builder. One would think that once you've skinned, for example, a scrollbar in Catalyst that you could then resize it in Builder to match different layouts.
    However, as I suspect you already know, the sizes do not change at all in Builder.
    We can get into the source code in builder and add in a bunch of width/height = 100% attributes, but these break down at the point that there are Paths defined in the code. The Path elements would need to be re-coded to scale.
    So, I really have two questions:
    1) What exactly does "Convert to Optimized Graphic" do? Will this recreate all Paths to standard shapes that will scale?
    2) Is there a better system coming in the next Beta? If so, can you describe it a bit?
    Thanks a lot,
    Kirk

    This morning I sat down to use catalyst for the first time. I am preparing for a talk at Flash on The Beach in Brighton this year and I was hoping to be able to show how a view build in Catalyst could be injected into an app using Robotlegs.
    I watched http://tv.adobe.com/watch/adc-presents/create-spark-component-skins-using-flash-catalyst and thought that looked cool.
    I also watched http://tv.adobe.com/watch/flash-catalyst-cs5-feature-tour/sending-your-project-to-a-develo per, and saw the component library output looked awesome.
    So I started to build an interface, first by creating a custom button component (much like the first video) and then distributing those buttons in a completely custom button holder component. It is this button holder that would be injected, and in the holder each button would have an id so that references to them could be obtained after injection into the application.
    From the videos above this looked eminently doable and quite a good workflow. Designer design and layout components that get built into a library, and developers use those components in an application without actually recoding the components.
    This sounded great, but imagine my dissapointment when I discovered
    1) A custom component can not be resized in the design view of Catalyst - you have to create another component class with a different size!
    2) A component/skin developed in Catalyst can not even resize when imported into Flash Builder unless you recode it.
    3) You can't name instances of components in the design view.
    So my plan was completely foiled. I mean, surely a button skin/component can not be considered a button skin/component unless it can be resized!
    I like Flex and I think Flex 4 is a big step forward, however I have never met a designer who liked it. Designers cannot effectively layout applications themselves using Flex. In fact where I work they are pushing to prevent ANY future flex development because of the problems with designers not being able to do this (we make and maintain some very highly skinned Flex 3 applications). I am the only front end Flex developer there and anytime I start to develop in Flex it is seen as very awkward and a problem.
    I hoped that Catalyst would solve some of these problems, but it unfortunately fails dismally because of the above problems that I mentioned.
    These three things would go a long way to improving developer design workflow for Flex and Catalyst. Any ideas for if/when this functionality might be included?

  • Auto-resizing TextArea in Flex 4

    Does anyone know how I can auto-resize the height of a Spark TextArea please? I tried following the examples in http://forums.adobe.com/thread/748191 but couldn't get it to work in either Flex 4.1 or Flex Hero.
    Here's what I'm doing:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:TextArea width="100%" heightInLines="{NaN}" minHeight="50"/>
    </s:WindowedApplication>
    When I press enter I need the TextArea's height to auto-resize, rather than scrolling up/down. Any help appreciated.

    @jeffry
    it surprises me too - but try this: http://polygeek.com/2249_flex_display-html-text-in-the-spark-textarea

  • My images will not auto resize for viewing

    This is somewhat embarrassing. When viewing images from the web, if they're too large to fit the current window, they get re-sized to fit. Okay. I have a file/page of thumbnails generated by XnView and when I click, the image is loaded, everything is good except the image is always larger than the window. The problem is Firefox WILL NOT auto-resize the image to fit. If I right mouse, I can select "View Image" to view whole image, but I don't want to have to do that for 1000's of images.
    Any help/insight would be appreciated.
    Regards,
    Dave

    Lilly.Love wrote:
    Hi, I'm new to this and for some reason my images are not appearing to full scale on adobe premiere cs6. This is really annoying as I am trying to make a stop motion video but I can't see what I'm doing. Please reply soon, this is an important project. Thanks
    Your sequence settings and clip settings are not matching. To make them match, right click on a clip and choose New Sequence from Clip and a new sequence will be created based on your clip settings.

Maybe you are looking for

  • Flex incompatibility issue with SDK 3.5.0.12683 and IE6

    Anyone have experience with issues for IE6 and Flex SDK 3.5.0.12683? As a secondary issue, does anyone know of a way to force a browser cache refresh? thanks Simon

  • ICloud grayed out?

    My I icloud app on my iPhone 4 is all grayed out. Anyone familiar with this problem? Is there a way to reinstall?

  • Music folder in external HD

    Good evening. I have a 2.16 GHz Intel iMac and I use iTunes 7.3.1 (3). I have almost 120 Gb of music so I decided to use my backup HD (external) as the source for the music folder so I can recover some space in the internal HD. So I went to itunes pr

  • RAID 5 Question - separate volume for OS/Apps: pros/cons

    What are the pros & cons of having 2 volumes on a Mac Pro RAID 5 (instead of one big volume): Vol 1: OS & Applications Vol 2: Home Folders (basically everything else) 1) Is this a good idea/bad idea? 2) For what purposes would this setup be best used

  • CUP Error - User -Create Company address cannot be selected

    Dear Experts, We are on GRC SP9. We customized Company as one of the parameter in initiator for roles. Till now we are able to successfully provision roles to the user. A new user was created in SAP Back end system and we are facing the below error d