Some Kind of "Flow" Layout

Is there any way to make panel groups do some kind of "flow" layout instead of based on the grid?
An example is a panel group what has 6-8 other gridpanels and panel groups in it. the problem is when you programmatically turn on/off various gridpanels or panel groups, instead of the ones that are turned on "flowing" to the top of the enclosing panel group, they are evenly spaced vertically within the enclosing structure.
This makes for ugly pages, and goofy layout. Is there anyway to change the layout algorithm so that it will layout left-ish and up-ish rather than this scattered vertically???
thx,
Kristofer

Hi Kristofer,
The following info might be of help to you:
The Grid panel displays components in rows and columns. The number of columns can be specified by going to the Properties sheet and entering a value for the Columns property. For example if you mention 5 columns and you drop 12 components into the grid panel, the components will be arranged in 3 rows with the frist two rows having 5 components each and the last row having 2 components. If one of the components' rendered property is set to false then these components after that empty cell move back one cell.
The group panel infact uses flow layout. The order in which the components appear is the order in which they were dropped onto the page. This applies for the grid panel too.
I hope this info will be of use to you. Please do revert back in case you have any more queries.
Cheers
Giri :-)
Creator Team

Similar Messages

  • HI. When I plug in my charger and use my macbook, I feel some kind of roughness on the body. It feels like some current flowing around it. Need help please.

    HI. When I plug in my charger and use my macbook, I feel some kind of roughness on the body. It feels like some current flowing around it. Need help please.

    My 2006 MacBook Pro and my 2011 MacBook Air both do it.  It happens because the earth ground stops at the power brick and is not carried through to the case of the machine.  It is not dangerous or the machine would not have been UL approved.
    Since I operate on battery 99.9999% of the time it doesn't bother me at all.

  • Hello, I am doing a layout in arabic language, and I am missing option of change direction in paragraph. I read on forum that I am supposed to download some kind of an plug in or version of indesign for arabic language support, but I just don't know what

    Hello, I am doing a layout in arabic language, and I am missing option of change direction in paragraph. I read on forum that I am supposed to download some kind of an plug in or version of indesign for arabic language support, but I just don't know what to download.
    Can you tell me step by step what to do and download.
    Thank you very much!

    InDesign is from a technical viewpoint a Plugin Activator.
    Every function is a plugin.
    With CC and higher you can change the language in the CC app preferences.
    When you change the language, additonal plugins, necessary for that language are installed, with the MENA (Middle East North Africa) versions RTL functionality is added into your primary version.
    InDesign chooses to start the program in the same language as you OS is set up, RTL functionality appears translated into your normal User Interface.
    After installing a MENA version you can switch back to your main language.

  • ScrollPane Flow Layout

    Hi Guys,
    I am at my wits end as to how I can solve this. I really can't find a solution, I hope you can help.
    I have a gui layout thus:
    JTabbedPane -> JScrollPane -> JPanel -> JPanel (instead of awt.canvas)
    I have multiple java2d 'graphs' that I wish to layout on this scrollpane left to right which then wrap. If the screen is full, vertical scrollbars are triggered. So I think flow layout is the closest to this as I really must maintain the original component size. Grid layout etc resize the graphs making it look wrong.
    The problem is that with flow layout, it scrolls infinitely horizontally. The only way I can get to to stop scrolling harizontally is by calling setPreferedSize(). When I do this however it seems to disable the scroll bars.
    I have tried all combinations of layout managers to try and give me the same effect - to no avail. I have tried setting the scrollpane display policies and again this has no effect.
    So I suppose I can see two possibilites:
    1- find some way of getting the scrollpane to wrap without setPreferredSize()
    2- find a way of getting the scroll bars working, with setPreferredSize()
    My code, looks like this:
    scrollPaneContents_ = new JPanel();
    scrollPaneContents_.setPreferredSize(new Dimension(scrollPane_.getWidth(),scrollPane_.getHeight()));
    scrollPaneContents_.setLayout(new FlowLayout(FlowLayout.CENTER));
    scrollPane_ = new JScrollPane(scrollPaneContents_);
    //scrollPane_ = new JScrollPane(scrollPaneContents_/*,
    //scrollPane_.VERTICAL_SCROLLBAR_AS_NEEDED,scrollPane_.HORIZONTAL_SCROLLBAR_NEVER*/);
    //layout.setConstraints(scrollPane_, layoutConstraints);
    // I want it to scroll to the width less and continue downwards forever
    scrollPaneContents_.setVisible(true);
    tabView_.add("Tab Name",scrollPane_);
    tabView_.refresh();
    view_.refresh();
    scrollPaneContents_.add(graphView_);
    As you can see I have commented some out to try every combination :)
    Any suggestions?
    TIA

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class GridBagAddition
        public static void main(String[] args)
            DisplayPanel displayPanel = new DisplayPanel();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(displayPanel));
            f.getContentPane().add(displayPanel.getButtonPanel(), "South");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class DisplayPanel extends JPanel
        JButton addButton;
        GridBagConstraints gbc;
        int[] gridwidths = {
            GridBagConstraints.RELATIVE, GridBagConstraints.REMAINDER
        int graphCount = 0;
        public DisplayPanel()
            addButton = new JButton("add graph");
            setLayout(new GridBagLayout());
            gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.insets = new Insets(10,5,10,5);
        public JPanel getButtonPanel()
            addButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    gbc.gridwidth = gridwidths[graphCount++ % gridwidths.length];
                    add(new GraphPanel(), gbc);
                    revalidate();
            JPanel panel = new JPanel();
            panel.add(addButton);
            return panel;
    class GraphPanel extends JPanel
        final int PAD = 20;
        public GraphPanel()
            setPreferredSize(new Dimension(200,175));
        public void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            int width = getWidth();
            int height = getHeight();
            int x0 = PAD;
            int x1 = width - PAD;
            int y0 = height - PAD;
            int y1 = PAD;
            g2.draw(new Line2D.Double(x0, y0, x0, y1));
            g2.draw(new Line2D.Double(x0, y0, x1, y0));
           

  • Recently when opening up Photoshop, my Adobe CS6 Master Collection pops up saying there's some kind of offer going on the Creative Cloud.  For awhile I was just able to close out of it and go about my business on Photoshop, but now it's not allowing me to

    Recently when opening up Photoshop, my Adobe CS6 Master Collection pops up saying there's some kind of offer going on the Creative Cloud.  For awhile I was just able to close out of it and go about my business on Photoshop, but now it's not allowing me to open Photoshop unless I sign up/pay.  I'm quite confused?  I really NEED to have access to Photoshop ASAP.

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • After upgrading to lion vevo, youtube, and hbo no longer plays videos. I'm assuming this is some kind of plug-in issue. How can I resolve it?

    After upgrading to lion, vevo, youtube, and hbo no longer plays videos. I'm assuming this is some kind of plug-in issue. How can I resolve it?

    Adobe has published a list of known issues relating to Mac OS 10.7 Lion here:
    http://kb2.adobe.com/cps/905/cpsid_90508.html
    The download page for Flash Player for Mac is here:
    http://get.adobe.com/flashplayer/?promoid=ISMRZ

  • I want to use my Mac desktop as a portal for viewing my cable television via some kind of cord. Is this possible and what do I need to set this up?

    I want to use my Mac desktop as a portal for viewing my cable television via some kind of cord. Is this possible and what do I need to set this up?

    It can be done with analog but not digital thanks to "good 'ol" HDCP copy protection which apple (and most other manufacturers) unfortunately respect.
    So you can take the analog output from your cable box (component -- 5 cables -- if it has it but generally they all have composite -- 3 cables) and feed it into some kind of converter or into some appropriate pci card for your mac pro.  But none of them are going to let you directly use the HDMI output from the box to your computer.
    Bottom line, no single cord is going to work and it will never be the higher quality digital picture you get on your tv.
    Some qualification:  There are boxes that I think support hdmi input.  Look at Blackmagic.  But I still don't think you can get around the HDCP from the cable box (might depend on the kind of cable box). 

  • I dropped my phone in the water I know it's not covered with the Warranty so what can I do can I trad it in and get a new one and pay some kind of money or do I have too just buy a whole new phone?

    I dropped my phone in the water I know it's not covered with the Warranty so what can I do can I trad it in and get a new one and pay some kind of money or do I have too just buy a whole new phone?

    The genius bar folks will be glad to help...and if you have backed up your iPhone in iCloud they will restore the backup to the replacement iPhone for you while you wait.
    Call or email for an appointment, you don't want to add to your frustration by standing around waiting for someone to get free to help you.

  • I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.

    I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.
    Also, I had to install the software twice on my same computer before because I had to reboot the computer. I don't know if this affects the limit.

    You are allowed to have two activated installations so there should not be a problem having working installations on the two machines.  If by chance you have somehow tied up two activations for the one machine you can have Adobe support help resolve that thru chat.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • I have a MackBook A1181 I need to upgrade my Safari so Outlook will work and would like to get some kind of word/writing tool on it... the info is:  Model Name:     MacBook   Model Identifier:     MacBook1,1   Processor Name:     Intel Core Duo   Processo

    I have a MackBook A1181 that I bought off Ebay :/ it came with pirate discs and no info....I need to upgrade my Safari so Outlook will work and would like to
    get some kind of word/writing tool on it... the info is:
    Model Name:          MacBook
      Model Identifier:          MacBook1,1
      Processor Name:          Intel Core Duo
      Processor Speed:          1.83 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache (per processor):          2 MB
      Memory:          2 GB
      Bus Speed:          667 MHz
      Boot ROM Version:          MB11.0061.B03
      SMC Version:          1.4f12
      Serial Number:          4H631CVDU9B
      Sudden Motion Sensor:
      State:          Enabled
    Can anybody help?!

    First correct the pirate disc issue. Buy OS X 10.6 Snow Leopard from Apple for $19.99 here http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Snow Leopard is the latest version your macbook 1,1 will run. Oitlook is part of the Microsoft Office suite, if you want outlook you'll need to also purchase Office. If you can get by with Apple's mail program there are free alternatives to Office like Libre Office or Open Office.

  • Looking for some kind of Docking Bar...

    I am not exactly sure what to call the item I am looking for, I can only describe it. I need some kind of small bar to just keep all my coords and wires plugged in at home at my desk so that when i come home I can just slap the bar on the side of my macbook pro and be done with it.
    I know many are going to say to just stop being lazy and plug them in but my roommate has a computer on the same desk and its a pain in the butt fishing for all my wires every time I come home. I also don't have the room nor the money to afford a full docking station.
    Thanks for your advice

    kudagra wrote:
    I am not exactly sure what to call the item I am looking for, I can only describe it. I need some kind of small bar to just keep all my coords and wires plugged in at home at my desk so that when i come home I can just slap the bar on the side of my macbook pro and be done with it.
    I know many are going to say to just stop being lazy and plug them in but my roommate has a computer on the same desk and its a pain in the butt fishing for all my wires every time I come home. I also don't have the room nor the money to afford a full docking station.
    Thanks for your advice
    Will this work for you?
    http://www.cultofmac.com/gorgeous-docking-stations-allow-you-to-easily-use-your- macbook-as-your-main-work-machine/39125

  • Will apple tv work with a hdmi splitter of some kind ? TV only has 2 hdmi ports and both are in use

    will apple tv work with a hdmi splitter of some kind ? TV only has 2 hdmi ports and both are being used .
    If splitter will work any recomendations as to best type to use

    The Hatter,
    I am a novice at Mac so I read all I can.  From what I understand the NEC monitors I bought require Display Port for their maximum performance.  The GTX 680 only has DVI outputs.  Difference from what I understand is larger bandwidth with the DP.
    You said I have the 4000 for CUDA.  I am not all that familiar with CUDA and when I do read about it I do not understand it. 
    A concern I have is, that if I connect the 2 high end NEC monitors via the 5770, using it's 2 Display Ports I would have nothing connected to the 4000.  Is the 4000 doing anything with nothing connected?  I read where in a PC system the 2 cards would interact but in a Mac system they do not.
    Bottom line, as I see it, the 4000 will not be useful at all to me, since I want a dual monitor set-up.
    So far the 5870 seems the best choice, higher band width than the 5770, and it has 2 Display Ports to optimize the NEC monitors.
    I'm not sure how fine I am splitting hairs, nor do I know how important those hairs are.  I am just trying to set up a really fast reliable system that will mainly be used for CS6 and LR4.  Those NEC monitors are supposed to be top notch.

  • I am so frustrated. I found some kind of Apple chatline on my Iphone and was communicated with Krystal when we were cut off. I am know on my computer because I cannot find it on my phone. I am trying to find out how to use Icloud to locate my phone in my

    Where did I leave off? Anyway, I found some kind of chatline on my phone. She was in the midst of helping me to use the computer to call myself. I have my phone but I often lose it in the house. I was told that the computer can make the alarm go off. Can someone help me?

    Did you set up Find My iPhone when you first set up your phone? If so, you can log into icloud.com with your Apple ID and use Find My iPhone there. If you didn't, there is no way to do what you are asking.

  • Flow Layout

    Hey,
    i got a little problem. I need to write a clozeTest in JavaFx and it´s not function like i want.
    The problem that i have, is that the text shouldn´t start on a new line in case he hasn´t enough place.
    * clozeStage.fx
    * Created on 03.06.2010, 13:17:03
    package progressbar;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.ext.swing.SwingTextField;
    import javafx.scene.layout.Flow;
    import javafx.scene.shape.Ellipse;
    import javafx.scene.paint.Color;
    import javafx.geometry.HPos;
    import javafx.scene.layout.Tile;
    import javafx.scene.layout.HBox;
    import javafx.scene.Group;
    import javafx.scene.layout.VBox;
    * @author Dori
    var tf: SwingTextField[];
    var luecken: String [];
    var test:Boolean;
    luecken = ["Ich werde gleich ausflippen. Ich","(lernen) dieses JavaFX. Ich finde das echt toll. Außerdem werde ich jetzt mal ein bisschen extrem langen dummen Text schreiben, damit ich überprüfen kann, ob das gute FlowLayout auch einen Umbruch macht.",
                "Das ist ein Test, ob er auch"," automatisch zwischen Wörtern trennen kann.", " Voila", "Ohyeah"];
    for(i in [0..10]){
         tf=SwingTextField {
         columns: 5
         text: ""
         editable: true
    Stage {
    title: "Application title"
    scene: Scene {
    width: 900
    height: 400
    content: [
    Flow{
    width:700
    hpos: HPos.LEFT
    content:[
    for (m in [0..20]){
    if(test == false){
    test = true;
    Text{
    content: luecken[m/2]
    font: Font{size:15}
    wrappingWidth:700
    else{
    test = false;
    tf[m]
    It would be nice if somebody could help me.
    Edited by: avalonne on Jun 7, 2010 3:51 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Answered (I think) in the second [Flow Layout|http://forums.sun.com/thread.jspa?threadID=5441485] topic.

  • Iphone 5 is taking too long to download through EDGE why????????Please help i just wnat to confirm that it is the normal behaviour or it is some kind of problem please help

    iphone 5 16 gn black my iphone is taking too long to download apps from apps to download on my iphone so please help from overcoming this problem
    i just want to know this is the normal behaviour or it is some kind of problem

    You have to turn on 3G/4G/LTE and be in a coverage area for such to happen.
    Or connect to wifi.
    Normal behavior for Edge is very very slow.

Maybe you are looking for