SplitPane divider position change doesnot render both the components

Hello
I am trying to use a splitpane that has two panels. By default i want only one of the panels to be seen(initially). But I want the second panel to be visible when I click on the divider.I have done it as follows as a mouse event performed on divider.
splitPane.setSize(800,800);
splitPane.setDividerLocation(.5);/splitPane.setDividerLocation(400);
splitPane.resetToPreferredSizes();
splitPane.paint();
I can change the size but the second component is not seen initially.On debugging I see the divider position being set(to 400/.5).The panel is seen only when the divider crosses its intial position.(probably after 2/3 clicks).Have tried by inspecting the minimum and preferred sizes of all.The second panel width is overriden with a value 0 on first click inspite of initialising it.
Have been stuck with it for 3 days.
Hope to get some help.

This is just compliant to Swing rules but not stated in docs:
0) Configure splitter to be "one touch expandable" and more as necessary.
1) Play with individual dimensions of both panels, not with split panel.
2) Declare minimum size for both panels as ZERO to hide one at time.
3) Declare preferred size for some arbitrary panel and the complement size to other.
It is better, if possible, to declare preferred size to the "less" important panel and attempt to Look&Feel disregarding the size of other (the most important).
Let us know about result in near future.
Best regards (from a guy in Brasil)!

Similar Messages

  • Video's Position Changes after Render

    Product: Premiere Pro CS4
    OS: Vista Ultimate sp1
    RAM: 6 gb installed, but only ~4 gb utilized due to Vista 32-bit restriction
    I took some video footage of a Pendulum concert and now I am trying to edit the clips. They are in .avi format, 1280x720, 29.97 fps, 1.0 pixels. I made a new Premiere Pro CS4 project with the same settings so I could edit the files easily. Everything was going according to plan...
    http://www.derangedtaco.com/images/prpro1.jpg
    But after I rendered what I had done so far, I was shocked to see the video smashed up against the bottom and over to the left.
    http://www.derangedtaco.com/images/prpro2.jpg
    Why does this happen?

    For simplicity's sake, I left that info out. But here goes:
    I have a jailbroken iPhone and I used the app "3G iPhone Video Recorder" to get all of the footage. The original encoding was 384x288, 10 fps, 1.0 pixels, .mov file format.
    I tried importing the .mov files into Premiere but they did not render well at all. It was playing at a lot less than 10 fps... More like 2. So I used Canopus Edius 5 to re-encode all of the files to 1280x720 (16:9), 29.97 fps .avi files. I opened the newly created .avi files in Windows Media Player and they did run a lot more smoothly.
    But when I tried importing these files into Premiere and then rendering, I experienced the problem that I explained in my original post.
    So I think we can assume that the original .mov files are the cause of the problem. Maybe they are corrupted, because there is some frame skip. Ah, frustrations.
    Thanks for the help btw.

  • Not here! Region Tie Regions by Position Change (Logic9)

    I have just upgraded to Logic9 and am looking though the new style instruction manual.
    On the 'Adding or Removing Arrangement Passages' page at the 'remove gaps between regions' part it says Choose Region > Tie Regions by Position Change (or use the Tie Regions by Position Change key command).
    The thing is, that the 'Tie Regions by Position Change' is not under the local menu Region and the KC
    is no where to be found either. Has anybody else seen this at all.
    There is the option 'Trim Regions etc' under Regions though no Tie Regions.
    Thanks
    Message was edited by: ekaton
    Message was edited by: ekaton

    Must be Region > Shuffle Regions left within selection then

  • JSplitPane divider height change listener

    Is there a listener to detect splitpane divider height changes?

    Check out these threads:
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=468307
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=219213
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=138065

  • Scrolling over (on top of) the SplitPane divider

    Hi,
    In my app I have a vertical SplitPane. The left component is a JTree. The right component is a JTabbedPane. Each Item being added to this JTabbedPane is a ScrollPane which contains a Canvas on which I have my chart drawn. My problem is that when I drag the horizontal scrollbar to the right, the Canvas is scrolled over (i.e. on top of) the divider and if I dragged the scrollbar far right enough the chart on the right will completely cover the JTree as it move left.
    I would really appreciate if anyone could tell me how I could make the chart on the right moves under (rather than above) the divider as it move left.

    frankly, it's better if you use a the Scrollable interface on your panel.... here's a ScrollablePanel (you can set the unit size as needed) which handles drag-scrolling which you could subclass to do whtaever painting on... Still need to use setPreferredSize() to set the size, which also revalidates and repaints the panel...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * <code>ScrollablePanel</code> is a <code>JPanel</code> subclass which
    * supports scrolling via the <code>Scrollable</code> interface. 
    public class ScrollablePanel extends JPanel implements Scrollable, MouseMotionListener {
          * The scroll unit size. 
         private int unitSize = 5;
          * Flag to indicate if a viewport should always force the width of this
          * <code>Scrollable</code> to match the width of the viewport.
         private boolean scrollableTracksViewportWidth = false;
          * Flag to indicate if a viewport should always force the height of this
          * <code>Scrollable</code> to match the height of the viewport.
         private boolean scrollableTracksViewportHeight = false;
          * Creates a new <code>ScrollablePanel</code>. 
         public ScrollablePanel() {
              super();
              setAutoscrolls(true); // enable synthetic drag events
              addMouseMotionListener(this); // handle mouse drags
          * Handles mouse moved events.  Does nothing. 
          * @param  e  the mouse event
         public void mouseMoved(MouseEvent e) {
          * Handles mouse dragged events.  Tracks dragging for autoscrolling. 
          * @param  e  the mouse event
         public void mouseDragged(MouseEvent e) {
              scrollRectToVisible(new Rectangle(e.getX(), e.getY(), 1, 1));
          * Sets the preferred size of the panel.  This also calls
          * <code>revalidate()</code> to notify the viewport parent
          * of the change. 
          * @param  size  the preferred size of the panel
         public void setPreferredSize(Dimension size) {
              super.setPreferredSize(size);
              revalidate();
              repaint();
          * Returns the preferred size of the viewport for a view component. 
          * @return  the preferred size of the viewport
         public Dimension getPreferredScrollableViewportSize() {
              return getPreferredSize();
          * Components that display logical rows or columns should compute the
          * scroll increment that will completely expose one new row or column,
          * depending on the value of orientation.
          * @param  visibleRect  the visible area
          * @param  orientation  the orientation
          * @param  direction    the scroll direction
          * @return  the unit increment
         public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) {
              int currentPosition = 0;
              if(orientation == SwingConstants.HORIZONTAL) {
                   currentPosition = visibleRect.x;
              } else {
                   currentPosition = visibleRect.y;
              // return the number of pixels between currentPosition and the
              // nearest unit size increment in the indicated direction.
              if(direction < 0) {
                   int newPosition = currentPosition - (currentPosition / unitSize) * unitSize;
                   return (newPosition == 0) ? unitSize : newPosition;
              } else {
                   return ((currentPosition / unitSize) + 1) * unitSize - currentPosition;
          * Components that display logical rows or columns should compute the
          * scroll increment that will completely expose one block of rows or
          * columns, depending on the value of orientation.
          * @param  visibleRect  the visible area
          * @param  orientation  the orientation
          * @param  direction    the scroll direction
          * @return  the block increment
         public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) {
              if(orientation == SwingConstants.HORIZONTAL) {
                   return visibleRect.width - unitSize;
              } else {
                   return visibleRect.height - unitSize;
          * Return true if a viewport should always force the width of this
          * <code>Scrollable</code> to match the width of the viewport.
          * @return  the tracks viewport width mode
         public boolean getScrollableTracksViewportWidth() {
              return this.scrollableTracksViewportWidth;
          * Sets if a viewport should always force the width of this
          * <code>Scrollable</code> to match the width of the viewport.
          * @param  b  true if the tracks viewport width mode
         public void setScrollableTracksViewportWidth(boolean b) {
              this.scrollableTracksViewportWidth = b;
          * Return true if a viewport should always force the height of this
          * <code>Scrollable</code> to match the height of the viewport.
          * @return  the tracks viewport height mode
         public boolean getScrollableTracksViewportHeight() {
              return this.scrollableTracksViewportHeight;
          * Sets if a viewport should always force the height of this
          * <code>Scrollable</code> to match the height of the viewport.
          * @param  b  true if the tracks viewport height mode
         public void setScrollableTracksViewportHeight(boolean b) {
              this.scrollableTracksViewportHeight = b;
          * Gets the scroll unit size. 
          * @return  the scroll unit size
         public int getUnitSize() {
              return this.unitSize;
          * Sets the scroll unit size. 
          * @param  us  the scroll unit size
         public void setUnitSize(int us) {
              unitSize = us;
    }

  • Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    You're not addressing Apple here. This is a user-to-user technical support forum. If you want to contact Apple, use the Contact Us link at the bottom right of every page for information on how to do so.
    Best of luck.

  • IPhone question:  Im trying to update applications on my iphone.  When I do it I'm as for password from a different Apple ID from what I have in Itunes.  How do I change so that both are the same?

    IPhone question:  Im trying to update applications on my iphone.  When I do it I'm as for password from a different Apple ID from what I have in Itunes.  How do I change so that both are the same?

    All apps are tied to the apple id that it was used to purchase or download the app.
    did you use a different id to buy the app?
    you can change id, settings - appstore - apple id - log out and log in with correct id.

  • IOS 5 used to allow Airplay between iPad (WiFi) and Apple TV (Ethernet) as long as they were on the same network. In iOS 6, now both the iPad and the Apple TV have to be on the same network and both have to be connected using WiFi ? Why did they change ?

    iOS 5 used to allow Airplay between iPad (WiFi) and Apple TV (Ethernet) as long as they were on the same network, i.e. connected to the same wired/wireless router. In iOS 6, now both the iPad and the Apple TV have to be on the same network and both have to be connected using WiFi ? Why did they change this ? Means that the iPad and the Apple TV box both have to be in range of the wireless router when this wasn't a restriction before. Apple TV could be anywhere as long as it was connected to the same wireless router via ethernet cable. Seems like an unnecessary thing to restrict.

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • I inadvertedly changed a setting where the top of my screen no longer shows the apple logo in the top left or the clock and wifi status and strength on the top of the screen, how can I get it to show both of these things again like it used to?

    I inadvertedly must have changed a setting where the apple logo and files and things that used to be in the top left corner of the screen are no longer there as the clock and wifi status and other installed settings used to show up in the top right hand corner of my screen.  When I move my mouse to the very top of the screen they drop down but when I move my arrow away from the very top of the screen they both disappear again.  So I was wondering how can I get it to revert back to the way it used to be?  I hope this isnt confusing.

    I tried the zoom thing but it still didnt resolve my issue   Im gonna try to clarify my issue a little bit more, before the change, my screen when I would surf the web would have the apple logo and safari and file and edit and view buttons at the top left hand of the screen and the upper right hand screen would have the time and the wifi strength and my name and the spotlight box and a volume control but now they dont show while Im browsing the web unless I take my arrow and move it to the very top of the screen then those boxes will drop down like it used to be but when I take my arrow and move it from the top of the screen it disappears again and ll I get is a back and forward arrow and the url input bar.  Anyone else have any ideas of what I did to mess this up?

  • Both the 'delete' button and in the menu options do not delete messages but change them to unread. How can I remedy this?

    The delete function seems to no longer work in Thunderbird. Both the 'delete' button and in the menu options do not delete messages but change them to unread.
    I have tried to fix it by deleting the trash / deleted files as suggested in another thread but it made no difference. The delete key still works to delete things outside of Thunderbird (including here for example).
    I have not uninstalled / reinstalled. I have rebooted a couple of times and it hasn't made any difference.
    I did go through and delete a huge number of old emails a few days ago, but I have cleared out the Deleted folders and it made no difference.
    All suggestions appreciated.

    Right click on any of the other right panel headers  in Slideshow module to open the context menu. You should be able to reactivate the Options panel from there.

  • I'm a Canadian wishing to publish interactive books for both the Canadian and US markets. However, I've heard that Canadians would/do not have access to these interactive textbooks. Has this changed? If not, is there any indication that it will?

    I'm a Canadian wishing to publish interactive books for both the Canadian and US markets. However, I've heard that Canadians would/do not have access to these interactive textbooks. Has this changed? If not, is there any indication that it will?

    US only at this time.
    Apple doesn't discuss future plans, sorry.
    As always, feel free to use the 'Provide iBooks Author Feedback' menu item for features you'd like added in the future, etc.
    http://www.apple.com/feedback/ibooks-author.html

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • Is it possible to customise the tab/address/menu bar positions? I dislike the default position changes.

    Similar to MS Office, one can position all the menu bars in any order, top down or sideways as required. I find that with ver 4, the tabs on the top line , the search, home buttons etc are not intuitive and are quite annoying with their positional changes.

    You can still use/see the Menu Bar (''File, Edit, View, History, Bookmarks, Tools, Help'') if you prefer it:
    *'''Temporarily display the Menu Bar''': press the ALT key or the F10 key and make your selections from the temporarily displayed Menu Bar
    *'''Toggle between the Menu Bar and Firefox button'''. Do one of the following:
    **NOTE:
    ***Menu Bar '''checked''' = Menu Bar on, Firefox button off
    ***Menu Bar '''un-checked''' = Menu Bar off, Firefox button on
    **keyboard shortcut: HOLD the ALT key while pressing the letters VTM on your keyboard
    **Using the Menu Bar: click View > Toolbars, click Menu Bar
    **Using the Firefox Button: click Firefox Button > Options, click Menu Bar
    **right-click on an empty space in one of the toolbars, click Menu Bar

  • Not option for Transport under the tab Change list in both IR and ID

    Hello All,
    The option transport is missing in tab change list for both IR and ID. We have created the track, maintained the systems in the NWDI but still no luck. We have also included the SC SAP-INTDIR 3.0 for both the tracks (i.e.) IR and ID. Also we are running a seperate NWDI server for CMS and the SLD is with the XI production server.
    Am I missing any configuration? Kindly suggest
    Regards,
    Anand

    Hi Anand
    Please check if the following link is of some good to you:
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/f9f02cf3e41ecce10000000a1553f7/frameset.htm
    Also check for steps mentioned here:
    http://www.saptechies.com/minisap-610-installation/
    I hope it helps
    Regards
    Chen

  • Why does adobe premier elements render my video everytime i change something in it even when i have lots more of the video to edit? other editing software only seems to render at the start then lets you edit until your ready to save at the end.  Constant

    why does adobe premier elements render my video everytime i change something in it even when i have lots more of the video to edit? other editing software only seems to render at the start then lets you edit until your ready to save at the end.  Constant rendering means its almost impossible to edit anything. Please help.

    H TheGamer
    What version of Premiere Elements and on what computer operating system is it running? It will not influence my answer but will give me information in case I need to get into version specifics to detail my answer further.
    Timeline rendering is a preview matter. It does not fix anything, but it is your window of opportunity to catch of problem sooner than latter. If the Timeline rendering indicator displays orange (11 or higher) for the line above the Timeline content, that is the project telling you that you are not getting the best possible preview of the playback of that content in the Edit area monitor. And, every time you edit a file, you have altered the file from the time before. So, if you want to see the best possible for what you now have, you Timeline render. This is particularly helpful when you are dealing with titles, effects, transitions, and non native formats. You cannot turn off the Timeline render indicator system, at least none that I have ever found nor seen reported. You can do selective Timeline rendering by having the gray tabs of the Work Area Bar span only the Timeline segment that you want Timeline rendered.
    Consequently, you either ignore the Timeline render indicator system, move on in the project, and take your chances in the outcome or you Timeline render to get your best possible preview if the Timeline render indicator is suggesting that you do so.
    I am not approving or disapproving of this project feature, just commenting on the what is.
    This is not Adobe. Rather user to user. If you want to have your voice heard at Adobe, you might consider filing an Adobe Feature Request Bug Report Form.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Please consider.
    ATR
    Add On...it is also possible to do Timeline rendering in a project, save close the project, and reopen it to find your previously "green" lined content now "orange", indicating unrendered. Yet the preview files generated originally by Timeline rendering are still existing in their hard drive save location. That is another story for other time.

Maybe you are looking for

  • How do I get Apple to update timezone quickly?

    Hi all. How do I make contact with the appropriate team at Apple to have the timezone data updated as soon as possible? The local time law has been change (actually, twice this year). The old law indicated that DST was to be changed back to winter ti

  • Want to make a bootable clone...which software should I use?

    After an accident with my previous laptop I've realised the importance of backing up all my stuff. I decided on an OWC Mercury Elite-AL external hard drive and now it's arrived I want to make a bootable clone of my HD. Has anyone who has an OWC Drive

  • SOAP communication Channel inactive

    Hi Forum, We have some SOAP sender and receiver channels, in the integration Directory, which are all active there, but, in the RWB i can see all of them as inactive, with message in RWB as "Channel started but inactive" , why so, can u pls help

  • BootCamp can't install partition

    Hi All,anyone could help me to resolve ....The disk is not journaled. You must enable journaling using Disk Utility before using the Boot Camp Assistant.

  • XML Data- Help??

    Hi, I have a probelm like how to get node vale from xml file if xml file contains html data. I would appreciate your help. I want retrive the value of node1 as <html><body><h1>Hello</h1></body></html> Example: <static_info> <node1> <html><body><h1>He