Resizable panels in a JApplet, sort of like a Frame

I have a dialog box that has a tree on the left and images/text displayed on the right. I have the tree and text placed on two different panels. I want the panels to be resizeable, in the way an HTML frame is resizable. This way the user can shorten the tree panel, which in turn widens the text/image panel...or vice versa. Problem is that I have no clue where to begin!
Any/All help is apprecaited!

Yup! JSplitPane will work quite nicely. <sarcasm>I greatly appreciate everyone's help!</sarcasm>

Similar Messages

  • Resizing panels on the fly

    Previoulsy I could resize a panel on the fly using something like this
    private function minimizeResize():void{
                                            var winGeom:WindowGeometry = new WindowGeometry();
                                            winGeom.width = 292;
                                            winGeom.height = 44;
                                            CSXSInterface.getInstance().requestStateChange(StateChangeEvent.WINDOW_RESIZE, winGeom);
    Im wondering does EB3 support StateChangeEvent.WINDOW_RESIZE yet?

    Think you are right (didn't even see it before), but the resizing possbility was very limited in 6, to the maximum size of the Properties panel only. When you make panels floating, some can still have their width being increased like the Library (which I often make floating).  As I answered in many threads, the only way to increase width of the Properties panel is to drag it to the bottom dock, where the Timeline is sitting.
    I have already logged multiple feature requests to allow more customisation for panel size, to turn the Advanced Actions dialog box into a real panel, with full customisation possible etc. You can only add your voice by entering also a feature request.

  • Sorting string like windows file name sorting

    Hi everybody, I have a simple question.
    I was trying to sort some file name in java
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    But if i enter those strings into an Arraylist and use Arrays.sort or Collections.sort, the result is
    1.txt
    11.txt
    2.txt
    a(1).txt
    a(11).txt
    a(2).txt
    a.txt
    Is there a way to achieve the string sort similar to windows rather than aplhabetically like the default sort of Arrays/Collection.
    I have done some searching but only found problem regarding to different language character sorting which can be achieved using Collator but this was not my case. Has anybody encounter this issue ?
    Any help is greatly appreciated
    regards
    Hendra Effendi

    ballistic_realm wrote:
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    ...Not sure, but wouldn't Windows sort it like:
    1.txt
    2.txt
    11.txt
    a.txt
    a(1).txt
    a(2).txt
    a(11).txt
    If so, the try something like this (UNTESTED!):
    class WindowsFileNamesComparator implements Comparator<String> {
        public int compare(String a, String b) {
            String[] tokensA = tokenize(withoutExtension(a));
            String[] tokensB = tokenize(withoutExtension(b));
            int max = Math.min(tokensA.length, tokensB.length);
            for(int i = 0; i < max; i++) {
                if(tokensA.equalsIgnoreCase(tokensB[i]))
    continue;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\D+"))
    return -1;
    else if(tokensA[i].matches("\\D+") && tokensB[i].matches("\\d+"))
    return 1;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\d+"))
    return Integer.valueOf(tokensA[i])-Integer.valueOf(tokensB[i]);
    else
    return tokensA[i].compareTo(tokensB[i]);
    return tokensA.length - tokensB.length;
    private String[] tokenize(String s) {
    List<String> tokens = new ArrayList<String>();
    Matcher m = Pattern.compile("\\d+|\\D+").matcher(s);
    while(m.find()) {
    tokens.add(m.group());
    return tokens.toArray(new String[]{});
    private String withoutExtension(String s) {
    int lastDot = s.lastIndexOf('.');
    return lastDot < 0 ? s : s.substring(0, lastDot);

  • Please help, Effects are missing in the Effects Panel of Adobe Premier Pro CS6, like "WIPE",

    Please help, Effects are missing in the Effects Panel of Adobe Premier Pro CS6, like "WIPE",

    Here is a list of what's missing
    Adobe Premiere Pro Help | New features summary

  • Make Resize Panel Remember My Settings

    Hi,
    I'm on Photoshop CS5.1 on Windows.
    Is there any way to make the resize panel remember what settings I told it to use?
    In 99.99% of cases, I want to use pixes as units, locked aspect ratio, and left corner as reference... Yet, any time I set those and then go to resize another object, the settings get reverted to center reference point, percents, and unlocked aspect ratio.
    It's incredibly annoying to have such poor defaults without sticky settings... Is there any way around it?
    Let me know.
    Thanks,
    Z

    Turn on the rulers (Ctrl r) right click inside the ruler and choose unit.  It will keep that unit until you change it again.  As far as I know, there is no way to change the Free Transform reference point default from center.

  • How to act a form like a frame with scrollbars?

    How can i setup a form like a frame?
    I got a long list of input fields in my form which doesn't fit on a page.
    So i was thinking of creating a form that has frame with scrollbar function, like the iframe in HTML.
    Is there any way to do this??

    Not sure I understand what you want, but I set up a page with 2 items on one row, 3 on the next. http://apex.oracle.com/pls/apex/f?p=23834:30 is that the sorta thing you want to do? - control where the items appear?
    If so - you can just use drag and drop layout, or on the items settings (Displayed settings), specify whether or not it appears on a new line or not.
    Ta,
    Trent

  • Moving and Resizing Panels

    I have some panels that I would like to allow the end-user to
    rearrange and resize to their liking.
    How would I go about doing this?

    I have some panels that I would like to allow the end-user to
    rearrange and resize to their liking.
    How would I go about doing this?

  • Pb of resizing panels with GridBagLayout

    Hi !
    I've got three panels one under each other (A, B and C) and use GridBagLayout as layout.
    I'd like to resize only the center one (B) and conserve the height of other ones (A, B).
    When I fix the size, the preferred, minimum and maximum sizes to the same number for A and C, it doesn't work.
    Has someone got an idea, please :(
    delph

    Are you also setting fill for the constraints on the middle panel to GridBagConstraints.BOTH?
    For this requirement you'd be bettter using a BorderLayout though - it does just what you describe (if you use NORTH, CENTER, SOUTH for A, B, C) and its a lot lighter in its footprint.

  • Resizing panels on the right side? [Captivate 7]

    I'm pretty sure I remember being able to drag the panels to resize them in Captivate 6. For example, if you hover your mouse over the line between the timeline and the project aea, you can drag it to make it smaller or bigger. Similarly, wasn't I able to do this between the project area and the panels on the right side, that contains the properties panel, library, project info, etc? It's letting me minimize or open it, but not resize it in Captivate 7.

    Think you are right (didn't even see it before), but the resizing possbility was very limited in 6, to the maximum size of the Properties panel only. When you make panels floating, some can still have their width being increased like the Library (which I often make floating).  As I answered in many threads, the only way to increase width of the Properties panel is to drag it to the bottom dock, where the Timeline is sitting.
    I have already logged multiple feature requests to allow more customisation for panel size, to turn the Advanced Actions dialog box into a real panel, with full customisation possible etc. You can only add your voice by entering also a feature request.

  • Resizing panels inside of panels inside of panels...

    I'm trying to organize a GUI by using a series of panels inside a JFrame. I have added panels within these panels to organize my information since I've never been able to figure out that ghastly GridBagLayout. Anyway, I've hit a wall. It seems that I can't resize an object inside of a panel that's inside of a panel. I use the setPrefferedSize method, but it just doesn't have any effect. This is true for both panels and buttons. Am I right in my assumption that there's a limit to how far into a pile of panels one can use the setPrefferedSize method? I'm using primarily BoxLayouts if that makes any difference. Any help or suggestions or advice would be appreciated.

    I'm afraid the SwingUtilities.updateComponentTreeUI didn't work. When I say I'm a novice, I'm afraid I'm kind of shooting in the dark as to some solutions and problems. Let me try and clarify my problem a little bit with an example. I have JPanels A, B, C, D, E, F, G and JCheckBoxes 1, 2, 3. JPanel A is added to the JFrame. The rest go as follows:
    A.add(B);
    B.add(C);
    C.add(D);
    C.add(E);
    D.add(F);
    D.add(G);
    G.add(1);
    G.add(2);
    G.add(3);
    Every JPanel has used the .setPreferredSize() method to define the size I desire. JPanels A, B, C, D, and E all keep their preferred sizes. However, F and G mock me by resizing according to the sizes of JCheckBoxes 1, 2, and 3. Even though they are coded to take up a certain amount of space (which is well within the limits of JPanel D), they don't. Instead they just go to the default size, which is to allow all components within it to be visible. I have this same problem when I add other components into JPanels D and E, like buttons, other JPanels, etc. I hope this clarified more than it confused.

  • How can I sort by likes or comments in shared iCloud albums?

    Is this possible? If I share an iCloud album, the likes and comments that those I share it with appear in Aperture which is fantastic. However, there's no way to sort or filter the album in Aperture to show me just the photos that have likes or comments. This would be extremely helpful. Is there something I'm missing that would allow me to do this?
    It would also be MUCH better if the edits I made to a photo were reflected in both the iCloud album and the Aperture Library rather than just the Aperture Library. At the moment though I have to go to the Library to make adjustments to an image and then I have to re-share it to the iCloud album if I want those changes to be reflected there.

    In the range from useful professional (reliable, repeatable, efficient) to amusing toy, the Photo Stream is closer to the toy end.  It's cool, it's fun, it can be useful -- but it is not and (imho) cannot be made to be a professional tool, which seems to be your goal.
    There are (many) other tools for client interaction.  I use EditDrop, and like it.  (I have no affiliation with APhotoFolio other than being a customer.)
    Fwiw, none of them (that I know) provide live updates to pictures.  The prevailing paradigm is that the editing is done "off-line", and the results are posted on-line.  The results can be removed, but are not, in practice, changed.  Instead, a new image is published as a variant of the one-that-got-edited.  This makes sense to me -- you don't want the comments to the first published version of an Image attached to the edited second version.
    In this regard, they all work like Photo Stream.
    Do you know of any programs that work with images differently?

  • Hi, How to change date pattern in project panel in order to sort media according to date YYYY-MM-DD and not MM/DD/YY ?

    Hi
    Question is in the title
    I have the list of media and when I add columns from "metadata panel to the project panel, all dates are MM/DD/YY format and sort is not relevant !!
    Where can I change this pattern to the right one ?
    Thanks
    Emmanuel

    If you are on a PC then the instructions shown here should work for you. They did for me.
    Change the display of dates, times, currency, and measurements - Windows Help
    You just need to quit out of Premiere Pro after making the change and then start it up again.

  • Resize panels in a frame

    Hi, I tried searching through the forums, but am obviously using the wrong search words.
    I have a JFrame with a JPanel in it. The JPanel is using the following layout:
    new BoxLayout (parentPanel, BoxLayout.LINE_AXIS)
    Then I added two JPanels to the parentPanel.
    But then I would like to click and drag the separator between the two panels to change the size of the two JPanels.
    Any hints?
    Thanks,
    Novice

    As it turns out I should have been looking at the JSplitPane class.
    Novice

  • Should it take sooo long to install Flash on a new Mac book pro?  And should the CC panel say "syncing files" and look like it will never finish?

    I Have CC and it's taking so long to install on my new Mac book pro.  The CC panel also says its syncing files down at the bottom, it's so slow it looks like it will never finish.  Should it be taking this long?

    I had an issue where I had to wipe my mac as well. What you have to do to format the hard drive and reinstall is this:
    Restart the computer while holding down the option key. Choose the recovery disc. Find the main hard disc and hit format. Then you can reinstall Lion via the internet, it takes a while though, my computer took 5 hours or so.
    For your first question, if you got the family version of office, I believe you have 3 computers you can authorize it on. If you are not sure, look it up in the apple store.
    For the second: Time machine would probably be your best option, but I would reccomend restoring from a backup before you were having problems, and restore that one (put new files you need on another external or a digital-online storeage site such as dropbox.) To restore a backup, restart your computer and hold command+R and select "Restore from Time Machine Backup" (for more information go here: http://support.apple.com/kb/HT1427 )
    I don't believe tere is anything else you need to do, but I am new to macs, so I may not be the best source, but this is what I have found/have had to do.

  • Split View Resize Panels Via Javascript

    using Javascript is there a way to resize the panels in split
    view? make one view larger than the other?

    http://forum.java.sun.com/forum.jspa?forumID=45

Maybe you are looking for

  • Windows File Sharing - Unable to copy/see files using MacBook  from XP PC

    I've trawled the internet for an answer to this and tried hundreds of little tweaks but all to not avail, so I'm here. I've set up two shared folders using simple file sharing on a Windows XP (SP3) laptop. They have been given read/write permissions

  • Can't connect to Eduroam on my WP 8 Nokia Lumia 930

    Hi! So, I just got the new Lumia 930, which I am very happy with, however I can not seem to get it to connect to Eduroam at the university I work at. When I go to the page where I am suppose to 'join' or 'download' whatever I need, 'securew2', (using

  • Help finding Video FX

    I have been searching for weeks for help on how to get a certain effect in one of my videos. Im trying to make the motion in my video lag where it looks like each frame is off by like one second and kinda warps and twists... its really hard to explai

  • Interface with hardware through USB,not NI hardware

    Hi All, I wish to interface my hardware through USB using LabView. However,my hardware is not from National Instruments and I wish to know whether LabView can still interface with it. I need it urgently for my project. Hope someone can help. Thanks a

  • Click a row in jTextArea and get the content of the row.

    I have an array of strings display in a textarea, once a user click on a row, i will like to display the content of the clicked row. I am new in java swing. how should i achieve it? thank you all!!