开发者

JSplitPane giving wrong resize cursor with GTK LAF?

Running the officia开发者_如何学运维l JSplitPane demo on my Ubuntu system gives a resize cursor like --> over the divider. The behavior of native split panes gives <--> resize cursors. Does this qualify as a bug that should be reported to Sun (eh, Oracle)? Is there a workaround?


This does not sound like a bug. The arrows at the top allow one click collapse/expansion of either side of the split pane. By these are by default turned off and the current look and feel of the application can also determine if one, both, or neither of the arrows are displayed. (This is also stated on in the URL you provided).

If you would like to enable one touch expansion:

mySplitPane.setOneTouchExpandable(true);

If you did turn the one touch expandable on and it is not displaying, try changing the look and feel you are using.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜