I’ve never used the J-split Bean before but looking at your pictures some ideas for my use come to mind. Thanks! One thing I’m curious about is why do you also have the ‘custom controller’ on the left? Isn’t that redundant and just a subset of the top half of the right side? Or is it because the user can have a broader view (i.e. see more locations at a glance in the custom controller.
Nice to hear from you, hope you are well and enjoying Servoy ,-)
The custom controller on the left is exactly as you are guessing. The navigation concept is throughout the application the same: On top are the domains to choose from, left what I call the selection or quick overview and on the right the details. Now with JSplitPane I (would) have the possibility to display the detail as list and form at the same time, very nice. But I am having some problems with this bean: redraw problems when resizing the window (fundamental), and I couldn.t figure out how to set the size (witdh, height) of the bean. With drag and drop it is only resizable in 5pixel steps and as a rsult, I can’t layout as I wish to.
Back to the controller: You are right in that this is a special case, usually the controller displays something different, see attached picture. In general, I think the Single Window concept, together with splited displays is very effective. If you look at the modern Apple application, they are all bound to this concept.
I am still testing Servoy to find out if it’s a suitable development environment for us and I have to say, it has some nice things but I am a bit frustrated because I find quite many - more or less important things - that don’t work the way they should. And they cost a lot of time to investigate into. And, as you see in this redraw problem, what should I do? I can’t build a real application if such fundamental beans don’t work, our customer base will not accept such problems (I not even know if it’s Java or Servoy related).
Best regards, Robert
john.allen:
Hi Robert,
I’ve never used the J-split Bean before but looking at your pictures some ideas for my use come to mind. Thanks! One thing I’m curious about is why do you also have the ‘custom controller’ on the left? Isn’t that redundant and just a subset of the top half of the right side? Or is it because the user can have a broader view (i.e. see more locations at a glance in the custom controller.
I found another problem with JSplitPane. Sorting a column by clicking the column header (table view) works, as long as I don’t resize the window. As soon as I resize the window, the column sort funtion doesn’t work anymore, i. e. I click on the column header, nothing happens.
I would be very glad if someone could confirm/deny this behaviour.
Configuration:
Servoy Developer
Version R2 2.2.4-build 336
Java version 1.5.0_05-48 (Mac OS X)
Thanks in advance, Robert
PS: How can I set an exact size (width and height) for the JSplitPane (for a bean in general)? Drag and drop jumps in 5 pixel steps (and cuts off a bit of the slider in this example).
Robert Huber:
Hi All
I use a JSplitPane (horizontal) and I am having redraw problems when resizing the window.
It looks like this on startup (first picture) and with missing top part of the table view after resizing the window (second picture).
When I move the horizintal divider, it (ususally) get’s redrawn correctly. Additionally, sometimes I can’t resize the columns of the list part.
As I mentioned I’ve never played with this bean and so this is probably completely unrelated and dumb but could it be related to whether or not you have the ‘snap to grid’ feature turned on or not?
You are great! THAT was the solution! Unchecking the grid feature and voila, here it is, still difficult to set the correct size but at least possible now Do you have any idea of how to set a bean size directly in width and height somewhere (Properties would be natural, but can’t find it there) ? It seems only to be possible with resizing the places bean, I can’t find any place to set these values directly
Thanks a lot for your help, very much appreciated! Robert
john.allen:
As I mentioned I’ve never played with this bean and so this is probably completely unrelated and dumb but could it be related to whether or not you have the ‘snap to grid’ feature turned on or not?
This is not a bug!, use a header and footer parts, see image.
The mistake you made is anchoring your header image/tab which is then stretched over the splitpane.
Thanks for pointing me to the problem. So the general rule is somewhat like there may not be any part above a JSPlitPane which could potentially overlap the JSplitPane when the window get’s resized. May be one could make a note in the example code as a hint or warning?
Best regards, Robert
Jan Blok:
This is not a bug!, use a header and footer parts, see image.
The mistake you made is anchoring your header image/tab which is then stretched over the splitpane.
Anchoring elements at opposite sides make an element strech, but all elements with same opposite side anchoring strech the same space.
If those elements are in the same vertical or horizontal line you have the problem that they can overlap after sizing, which is the case in your solution.
Nice said, that’s the general rule to take care of when using JSplitPane.
Thanks again and best regards, Robert
Jan Blok:
Anchoring elements at opposite sides make an element strech, but all elements with same opposite side anchoring strech the same space.
If those elements are in the same vertical or horizontal line you have the problem that they can overlap after sizing, which is the case in your solution.