How to force a Layout manager to recompute placement

Hi,
I would like to know how i can force a Layout Manager to recompute
size of components in a JFrame and redraw all of them.
My problem: I have a JTree inside a BorderLayout and when i open
path in the tree i would like that the tree is resized to show
all the text. This is done when i resize the window i would like
that is done also when i click on the JTree
Thanks for help

Well I can tell you what I do, Im not sure how correct it is! I use the revalidate() and repaint() methods on the frame, and it should revalidate the components. Or removeAll() from the frame and re add frame.add(components); again.
Hope this makes a bit of sense. Post code if you want, then i can take a proper look.

Similar Messages

  • How to force Adobe Application Manager to reinstall all the cluod products

    Hi
    Due to a serious failure on my Windows 8 computer I had to restart the configuration from a Safe Point; unfortunately that configuration was not including Adobe products, so the restart has PARTIALLY erased main part of my applications, but NOT COMPLETELY. In this moment i have some directories on the disk, but can't uninstall anymore products like Photoshop, Aftereffects, Encore and all the rest from the Windows Uninstall tool. And, Adobe Application Manger STILL BELIEVES THEY ARE ON MY HD, so all I can do is to update tools. If I update nothing happen but the waste of time to wait for download. I would like or to uninstall AAM and all the rest or to force reinstallation, but how can I do?
    Hope not to have to wipe all the HD and reinstall all the operating system and other applications from scratch. Thank you for any support.

    You should be able to fix the problem using the Adobe Cleaner Tool available here http://www.adobe.com/support/contact/cscleanertool.html.

  • How to use the layout manager?

    Trying to make a neater Applet, quite new to java, the book i read mention bout u can arrange element according to North East South West and Centre, but didnt give details, can anyone help me and best if can give example, thank you

    Here is code for a super basic example of the BorderLayout, in which a JPanel with a different color background is placed in each of the 5 available locations of BorderLayout. The JPanel can be replaced with components, or JPanels that contain several other components or layouts.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class BorderLayoutExample extends JFrame
        public BorderLayoutExample()
        static public void main(String args[])
            BorderLayoutExample ble = new BorderLayoutExample();
            JPanel north = new JPanel();
            north.setBackground(Color.red);
            JPanel south = new JPanel();
            south.setBackground(Color.orange);
            JPanel west = new JPanel();
            west.setBackground(Color.yellow);
            JPanel east = new JPanel();
            east.setBackground(Color.green);
            JPanel center = new JPanel();
            center.setBackground(Color.blue);
            java.awt.Container cp = ble.getContentPane();
            cp.setLayout(new BorderLayout());
            cp.add(north, BorderLayout.NORTH);
            cp.add(south, BorderLayout.SOUTH);
            cp.add(east, BorderLayout.EAST);
            cp.add(west, BorderLayout.WEST);
            cp.add(center, BorderLayout.CENTER);
            ble.setSize(100,150);
            ble.show();
    } Here is documentation on BorderLayout
    http://java.sun.com/products/jdk/1.2/docs/api/java/awt/BorderLayout.html
    Here is a tutorial on LayoutManagers in general
    http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

  • Does anyone know how to win a fight with layout manager?

    I am using the form designer in netBeans to design my page, which has a jPanel on the left and a number of controls on the right.
    My problem is that when I eventually get it to look half right at design time, it looks different at run time. The fonts are different, the combo boxes are a different height and some of my text boxes are 4 times as wide. http://RPSeaman.googlepages.com/layout.GIF shows both the design-time view and the run-time view. How can I win my fight with layout manager?

    I'd like to do an experiment where you take say 20 pairs of students of java, with each pair matched in terms of prior programming and java experience, general knowledge, etc... and set one of each pair to learn Swing using netbeans and its layout generator with the other pair learning to code Swing by hand. Then 6 months later compare their abilities. I'll bet that the code by hand group will blow the other group out of the water in terms of understanding and ability.
    Just my 2 Sheckel's worth.

  • How to force a Custom Layout in the links sent by e-mail ?

    Hi everyone,
    For customizing the final user´s view for Discussion Groups,
    I created a custom Layout Set "myDiscussionGroupsContributor"
    that references a custom Collection List Renderer
    "myDiscussionGroupWithoutTopicsContributorCollectionListRenderer"
    that references a custom Command "my_join_discussion_thread_contributor"
    that has a custom Layout Set assigned "mySingleDiscExplorerContributor".
    When accessing the discussions via the final users it works fine
    (I´ve already corrected the "Back" link problem acording thread
    problem with discussion group contributor iview)
    The problem is that when I send a discussion via e-mail
    to another user using the "send to" command,
    the received link opens the discussion using the default
    "DiscussionGroupsContributor", in fact, the e-mail´s HTML code
    contains the property "rndLayoutSet=SingleDiscExplorerContributor"
    as noted in the following href element:
    href="http://myportal:50000/irj/servlet/prt/portal/prtroot/
    com.sap.km.cm.navigation/discussiongroups/
    80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc?
    StartUri=/discussiongroups/80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc&
    rndLayoutSet=SingleDiscExplorerContributor&scHeight=300&
    scWidth=220&scPostListWidth=500" target=_blank
    The same happens with the link in the subscriptions list.
    Does anybody know how to set the layout in these links ?

    Hi all,
    I solved the problem, so here I post the steps for the solution I found.
    1) Modify the Object Type Definitions:
    In the CM Repository there is a folder root > etc > oth.
    There you have to change the LayoutSet settings in the following files
    (I don´t know if it is necessary to modify all of them):
         - discussion_post.oth
         - discussion_topic.oth
         - discussion.oth
         - discussiongroups_items.oth
         - discussionPostType.oth
         - discussionType.oth
         - dscGroupsCollType.oth
         - dscGroupsItemsType.oth
    2) Then you have to reload de OTH settings:
    In the Content Management configuration (System Administration >
    System Configuration > Content Management)
    go to User Interface > Debugging Settings and edit the configuration.
    Add your user id to "UI Superusers" then enable
    "Enable Rendering Information" and save.
    Then go to a KM and clic on "Rendering Information"
    (If the link doesn´t appear, refresh your window).
    A new window opens, clic in "OTH-Overview"
    and then in the new window click on "Reload".
    Finally close all popup windows and go to the
    Debugging Settings again to disable the checkbox
    "Enable Rendering Information"
    For further information you can read:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/e4e25538f7274eb08b317751f2f04b/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm
    I hope someone find this thread useful.
    Daniel Sacco

  • Doing without layout manager

    Hi guys.
    I have a very complex problem.
    I've been writing a code that should be able to display a general tree. The tree has to look like an organigram, if you know what I mean. For example, the parent node is a the top and the child nodes are underneath it.
    It's clear that there is no layout manager that can handle this correctly. At least I assume.
    I used the Node Positioning of John Walker to compute the x- and y-coordinate of each node.
    I can display the nodes so far, but I don't know how to force a scrollpane to react to the size of the JPanel containing the nodes.
    In fact, the JPanel containing the nodes of the tree has a null layout manager. If it contains let say 10 nodes, it becomes big enough. However the scrollpane doesn't grow along with the panel.
    What should I do to let the scroll pane grow so that all nodes can be seen.
    Regards.
    Edmond

    It's clear that there is no layout manager that can handle this correctly. Correct. So you need to create a custom layout manager.
    I used the Node Positioning of John Walker to compute the x- and y-coordinate of each node. This is the code that should be added to your custom layout manager.
    but I don't know how to force a scrollpane to react to the size of the JPanel containing the nodes.This is the job of the layout manager. It will determine the preferred size of the panel based on the location/size of all the components added to the panel.
    Here is a simple example to get you started. This layout displays the components diagonally:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class NodeLayout implements LayoutManager, java.io.Serializable
         private int hgap = 20;
         private int vgap = 20;
         public NodeLayout()
          * Adds the specified component with the specified name to the layout.
          * @param name the name of the component
          * @param comp the component to be added
         @Override
         public void addLayoutComponent(String name, Component comp) {}
          * Removes the specified component from the layout.
          * @param comp the component to be removed
         @Override
         public void removeLayoutComponent(Component component)
          *     Determine the minimum size on the Container
          *  @param      target   the container in which to do the layout
          *  @return      the minimum dimensions needed to lay out the
          *                subcomponents of the specified container
         @Override
         public Dimension minimumLayoutSize(Container parent)
              synchronized (parent.getTreeLock())
                   return preferredLayoutSize(parent);
          *     Determine the preferred size on the Container
          *  @param      parent   the container in which to do the layout
          *  @return  the preferred dimensions to lay out the
          *              subcomponents of the specified container
         @Override
         public Dimension preferredLayoutSize(Container parent)
              synchronized (parent.getTreeLock())
                   return getLayoutSize(parent);
          *  The calculation for minimum/preferred size it the same. The only
          *  difference is the need to use the minimum or preferred size of the
          *  component in the calculation.
          *  @param      parent  the container in which to do the layout
         private Dimension getLayoutSize(Container parent)
              int components = parent.getComponentCount();
            int width = (components - 1) * hgap;
            int height = (components - 1) * vgap;
              Component last = parent.getComponent(components - 1);
              Dimension preferred = last.getPreferredSize();
              width += preferred.width;
              height += preferred.height;
              Insets parentInsets = parent.getInsets();
              width += parentInsets.top + parentInsets.right;
              height += parentInsets.top + parentInsets.bottom;
              Dimension d = new Dimension(width, height);
              return d;
          * Lays out the specified container using this layout.
          * @param       target   the container in which to do the layout
         @Override
         public void layoutContainer(Container parent)
         synchronized (parent.getTreeLock())
              Insets parentInsets = parent.getInsets();
              int x = parentInsets.left;
              int y = parentInsets.top;
              //  Set bounds of each component
              for (Component component: parent.getComponents())
                   if (component.isVisible())
                        Dimension d = component.getPreferredSize();
                        component.setBounds(x, y, d.width, d.height);
                        x += hgap;
                        y += vgap;
          * Returns the string representation of this column layout's values.
          * @return      a string representation of this layout
         public String toString()
              return "["
                   + getClass().getName()
                   + "]";
         public static void main( String[] args )
              final JPanel panel = new JPanel( new NodeLayout() );
              panel.setBorder( new MatteBorder(10, 10, 10, 10, Color.YELLOW) );
              createLabel(panel);
              createLabel(panel);
              createLabel(panel);
              createLabel(panel);
              createLabel(panel);
              JButton button = new JButton("Add Another Component");
              button.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        NodeLayout.createLabel( panel );
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add( new JScrollPane(panel) );
              frame.add(button, BorderLayout.SOUTH);
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible( true );
         public static void createLabel(JPanel panel)
              JLabel label = new JLabel( new Date().toString() );
              label.setOpaque(true);
              label.setBackground( Color.ORANGE );
              panel.add( label );
              panel.revalidate();
              panel.repaint();
    }You would need to customize the getLayoutSize() and layoutContainer() methods to meet your Node Layout requirements.

  • Combine absolute pos. with layout manager?

    Hi there,
    ist it possible to make a panel with two buttons, where the buttons are absolutely positioned and the panel is in a BorderLayout?
    Or how else can I have buttons in my gui with same size and position even if the surounding frame is resized?
    Regards,
    Philip

    I don't want to let the buttons disappear. But when resizing the gui, the space between the buttons is getting bigger, what dosn't look very good.
    Okay, I tried this:
    selectionButtonPanel.setLayout(null);
    selectionButtonPanel.setSize(100,60);
    //first button
    selectionButtonPanel.add(selAll);
    selAll.setBounds(0,0,20,10);
    //second button
    selectionButtonPanel.add(deselAll);
    deselAll.setBounds(0,25,20,10);
    c.add(selectionButtonPanel,BorderLayout.EAST);
    Unfortunately the button panel isn't visible anymore. I only see a thin line at the right gui side (east), so it seems that the setBounds call is ignored.
    How can I force buttons to have a exact position even if I use a layout manager?
    Thanks,
    Philip

  • Delete Crystal Report Design in Report and Layout Manager

    Hi All
    How to permanently delete a customised Crystal Report Design imported in Report and Layout Manager?
    There is no Delete button at all unlike Form Design?
    Kedalene Chong

    Hi Nagarajan
    Please see image attached, already login as superuser but there is no Delete button for imported Crystal Report Design in Report and Layout Manager.

  • How to force the "Bluetooth Communicat​ions Port" to be one of COM1 to COM8 ports?

    Dear Lenovo Community, Happy Holidays to you all and wish you a great happy new year. Recently purchased a Bluetooth OBDII device and have difficulty making it to work with its provided software on my T61 (running original XP Home). My short story and question/problem is that I can open "My Bluetooth Places" and pair with the OBDII device as an "OBDII SPP Dev", but my T61 assigns serial port COM19 to it. The OBDII software which came with the device only can let user set to one of the COM1 to COM8 ports and in the properties of Bluetooth pairing, there is no way that I can select which COM port to use. I looked at the Device Manager and I do see these COM port assignments: COM4,5,6,7: Sierra Wireless (the HSDA modem in the laptop which I have never used BTW) COM 9,10,11,12,13,14,15,16,17: Bluetooth Serial Port COM 18, 19: Bluetooth Communications Port and I don't see anything for COM1,2,3, and 8 My question is how to force the computer/OS to assign one of the COM1 to COM8 ports to my device upon pairing? Can I disable the Sierra Wireless model from the COM ports list and hope this will happen? Thanks for your help and inputs beforehand. Regards, AL

    Hi, AL_K
    Have you attempted to change the port number in device manager itself? If you navigate to Device Manager and open the list of Ports, you can right-click on the device you wish to assign a different port number. After right-clicking, click Properties. There should be a tab called Port Settings. In here, you should find a setting to manually assign a port number.
    Good luck, and let me know how it goes,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install.

    Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install?  Scanner is recognized by and works fine in Windows.  Acrobat however still sees Fujitsu fi-6130dj #3.  I need it to see Fujitsu fi-6130dj which is what is listed in Device Manager.  (Windows XP SP3).
    Thank you for any suggestions.

    To provide more detail and list what was done to resolve the issue but there may be a better way.
    Background.  When you install a USB device to a PC it is listed in Windows Device Manager as installed hardware.  If you take the USB plug for any device and plug it into a different USB port on the PC the PC will install drivers again for that device.  In Device Manager, if you set a system environment variable for device manager to show non-present devices you can see all of the times this may have occurred.  In this specific instance there were five installations in Device Manager for one piece of hardware, a Fujitsu fi-6130 scanner.  The first listing was Fujitsu fi-6130dj, then Fujitsu fi-6130dj #2, Fujitsu fi-6130dj #3 and so on.  Adobe Acrobat only saw the third instance of these drivers being installed.  Once I cleaned Device Manager of all Fujitsu scanner installs I was able to have a single set of drivers installed for this Fujitsu but Adobe still recognized the third instance of the driver install and I could not figure out how to force it to see what Device Manager was seeing, a single instance of the scanner being installed (with no #3 behind it).
    Steps performed to try to resolve.
    Repair install of Adobe - no luck - still sees the #3 instance of the scanner
    Deactivation, uninstall, reboot, reinstall, reactivation of Adobe - no luck, same behavior as above
    Complete removal of all scanner related software.  This included the ISIS drivers in Add/Remove Programs and all other related software.  This also included deleting the contents of the TWAIN_32 directory found within the root of the Windows directory and also included deleting the scanner from Device Manager.
    Rebooted.
    Reinstalled complete packages of both TWAIN and ISIS scanners - with the scanner disconnected.  Powered the scanner back on and let Windows install the drivers for the hardware.  Only at this point did Adobe see the new install of the Fujitsu scanner and no longer looked for the #3 instance of that scanner install.

  • How to force my Web part to run regardless of users permissions

    I have created the following custom permission , which will allow users to Create items without being able to view,edit them:-
    $spweb=Get-SPWeb -Identity "http://vstg01";
    $spRoleDefinition = New-Object Microsoft.SharePoint.SPRoleDefinition;
    $spRoleDefinition.Name = "Submit only";
    $spRoleDefinition.Description = "Can submit/add forms/files/items into library or list but cannot view/edit them.";
    $spRoleDefinition.BasePermissions = "AddListItems, ViewPages, ViewFormPages, Open";
    $spweb.RoleDefinitions.Add($spRoleDefinition);
    $spweb.Dispose();
    then inside my "Issue Tracking List" i stop inheriting permission from team site , and i define the following permission for all users:-
    now users can add items and they can not view them ,, which is perfect :).
    But now i wanted to add a custom web part to my Create form which will hide certain fields if the user is not within specific group ,the web part looks as follow:-
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPGroup group = web.Groups["Intranet Visitors"];
    bool isUser = web.IsCurrentUserMemberOfGroup(group.ID);
    if (!isUser)
    SPList myList = web.Lists.TryGetList("Issue List");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = true;
    titleField.ShowInEditForm = false;
    titleField.ShowInNewForm = false;
    titleField.ShowInDisplayForm = false;
    titleField.Update();
    myList.Update();
    // web.AllowUnsafeUpdates = false;
    else
    SPList myList = web.Lists.TryGetList("Issue List");
    SPField titleField = myList.Fields.GetField("Title");
    titleField.Hidden = false;
    titleField.Update();
    myList.Update();
    // //web.AllowUnsafeUpdates = false;
    web.AllowUnsafeUpdates = false;
    then i deploy the web part and i add it to the Create form. but after doing so user are not able to create items and they will get the following error:-
    Sorry this site has not been shared with you
    so can anyone advice how to force my web part to run , without checking the users permissions or with minimal permssions ?

    in this case, use the elevated privileges to read/add/edit items with elevated privileges with below code.
    but make sure the page which you add this web part have at least read access to all user.
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(web.Site.ID))
    // implementation details omitted
    More: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx
    Bistesh
    Ok after adding :-
    SPSecurity.RunWithElevatedPrivileges(delegate()
    users with the following permissions can create items:-
    "AddListItems, ViewPages, ViewFormPages, Open";
    and they can not edit/read them, which is great. but i am facing a caching problem , because if user is inside the "Intranet visitor" he will be able to see Category field as mentioned in my code, but if i remove him from the "Intranet Visitor"
    he still can see the field,, although in the web part i specify not to display the Category column if the user is not inside the "Intranet visitor " group... here is my current code:-
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPGroup group = web.Groups["Intranet Visitor"];
    bool isUser = web.IsCurrentUserMemberOfGroup(group.ID);
    if (!isUser)
    SPList myList = web.Lists.TryGetList("Risk & Issue Management");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = true;
    titleField.ShowInEditForm = false;
    titleField.ShowInNewForm = false;
    titleField.ShowInDisplayForm = false;
    titleField.Update();
    myList.Update();
    // web.AllowUnsafeUpdates = false;
    else
    SPList myList = web.Lists.TryGetList("Risk & Issue Management");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = false;
    titleField.ShowInEditForm = true;
    titleField.ShowInNewForm = true;
    titleField.ShowInDisplayForm = true;
    titleField.Update();
    myList.Update();
    web.AllowUnsafeUpdates = false;
    so can you advice please ? is this a caching problem, or once the user add at-least single item he will be able to see all columns ?

  • Reader XI & IE10 - how to force PDF's to be viewed in READER?

    I have NO Adobe add-on installed in IE10.  Updgraded from Reader 8.1 to Reader XI.  Under Reader 8.1 there was an option in settings to force PDF's to be opened in READER instead of IE.  Cannot find that option.  Went to Settings / Manage-Add-ons to disable Adobe PDF there, but it's not installed, so can't disable it.
    Any ideas on how to force PDF's to be opened in READER instead of IE10?
    Thanks!

    I do not quite understand your initial comment.  You write that you do not have the Adobe Reader add-on installed on IE10, yet PDFs open in IE?
    See this article how to enable viewing PDFs in a browser; you will have to do it the other way around to see the opposite effect: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Image (jpeg, gif) display in AWT layout manager

    Goodmorning All,
    I am looking for some help, a hint on my AWT Layout challenge i have.
    Example GUI_1:
    =========================
    Window border..................[_][x]..
    =========================
    [label]....|display_area|....[button].
    [label]....|display_area|....[button].
    ...............|display_area|....[button].
    ...............|display_area|....[button].
    ...............|display_area|..................
    =========================
    ...........................................[QUIT].....
    =========================
    I want to
    - display a picture in the "display area" of the this GUI
    - put labels left of it with some text
    - put a couple of buttons right of it, through which i am able to manipulate the image
    Questions:
    *1. Is it (even) possible to display an (jpeg,gif) image in the "display area" while using a layout manager?*
    Surfing over the internet...so far i only have found applet-examples that use the full gui surface of the applet to display an image via the g.drawImage (imagename, x,y); without any gui elements (labels, buttons) beside it.
    *2. What kind of AWT gui element do i need at the location of the "display area"?*
    Is is possible to use a CANVAS or do i need somethen else? (e.g. glue an image on a button)
    *3. Is is possible to display an ANIMATION (series of sequences jpeg, gifs) in the display area?*
    I already found out how to locate and load the images (via mediatracker).
    Now i need to find a way to "paint" the loaded images in the GUI.
    *4. Is this even possible with AWT layout or do i need to switch to SWING layout?*
    I have not used Swing yet, cause i'm working my way up through the oldest gui technologie first.
    *5. Do know any usefull websites, online tutorials (on awt and displaying images) that can help me tackle my challenge?*
    Thank you very much for your hints, tips and tricks

    A link as Gary pointed out is the best way to see what the problem may be.
    Did you save the image to your working folder and have you defined a site pointing to this folder.
    Defining a site helps Dreamweaver track and organize the files used in this site.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14028
    If you can't see the image, this means that the path to the image is incorrect.
    Nadia
    Adobe Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Suitable layout manager for adding JToolbar?

    Hi there,
    I'm new to Java Swing. I'm looking to add a toolbar to the top of a JFrame. I've created a Grid layout with 3 rows and no columns. I've placed the JToolbar in the first row. Unfortunately, each row in the grid is of equal size so the toolbar is stretched to 1/3rd the size of the JFrame. I want to the toolbar to be standard size but I don't know how to resize the grid rows. I don't want to have to add more rows to reduce the size.
    Can anyone help me here? Or if you have a better layout manager suggestion.
    Thanks,
    Sean

    You can use the default BorderLayout of JFrame and add your JToolBar to the North.

  • How to Force Client's DHCP Renew on Mobility Event?

    Hi All,
    I have a (single) client (it is a cisco IOS router) behind a wireless workgroup bridge (cisco1242).
    The client's IP address is obtained via DHCP from the wired network.
    Now, when roaming occurs, the Client will never have knowledge about this event,
    and hence will not renew its IP address until lease expiers.
    This is not a problem of course when Layer 2 roam occurs, but with Layer 3
    roam it will interrupt the traffic.
    The cisco's IP Mobile implementation does have this issue addressed in DCCoA
    scenario: the WGB is configured to send an SNMP trap on its dotradio state change;
    the cisco mobile router is configured with snmp-server manager to process this trap
    and start DHCP renew on the Down/Up event. Unfortunately, this works in Mobile IP
    scenario only because I cannot make it work without the mobile router registered
    with a home agent.
    I wonder if someone could come up with an idea on how to force DHCP renew
    on a client (cisco IOS router) in such a situation - event scripting, SLA,  or ...?
    alex
    ============================

    Yes, George, I've looked at this.
    The problem with dynamic anchoring with static IP address is how
    the (new) WLC detects the IP address of the client. Remember that
    my client is cisco router with network(s) behind it. Snooping the
    ARP request will not work since ARP timeout in IOS is 4 hours.
    Orphan packet handling (I understand it is intercepting the IP
    packet from client without reply(?)) will most probably give erroneous
    result as this packet can be a packet from a network behind the router.
    alex
    ====================================

Maybe you are looking for