Results 1 to 4 of 4
- 12-17-2010, 11:56 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 19
- Rep Power
- 0
Swing - JSplitPane setDividerLocation(double) problem
I need to set the divider location of my JSplitPane as a percentage of its size.
To divide the splitpane into two equal halves, I tried using:
mySplitPane.setDividerLocation((double)0.5);
but it just doesn't have any effect on the existing divider location.
- 12-17-2010, 09:27 PM #2
Have you read the API for that method?
If the split pane is not correctly realized and on screen, this method will have no effect
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
db
- 12-20-2010, 09:05 AM #3
Member
- Join Date
- Dec 2010
- Posts
- 19
- Rep Power
- 0
If I may ask, what does it mean to get a pane "realized"? Is it something related to its visibility? Thanks.
- 12-20-2010, 08:26 PM #4
realized: made real. As I understand it, a GUI component is realized when it is attached to native resources. For lightweight (Swing) components, this happens when the top-level window is either pack()ed or setVisible(true). The component will return to the unrealzed state if the containing window is dispose()d.
dbLast edited by DarrylBurke; 12-21-2010 at 04:25 AM.
Similar Threads
-
Double drawing problem with 2D
By leapinlizard in forum Java 2DReplies: 4Last Post: 02-12-2010, 01:02 AM -
variable double problem
By DarkoDrljaca in forum New To JavaReplies: 5Last Post: 03-02-2009, 08:00 AM -
Rediculous problem?! Assigning a fraction to a double variable
By Tzoshirzup in forum New To JavaReplies: 3Last Post: 11-24-2008, 07:01 PM -
Double Value problem
By sakthivel123 in forum New To JavaReplies: 2Last Post: 07-10-2008, 04:18 PM -
Double Buffering problem
By aprenz in forum Java AppletsReplies: 0Last Post: 05-28-2008, 04:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks