简体   繁体   English

如何垂直显示按钮?

[英]How can I display button in vertical orientation?

I am working on a layout that is set to use Class ComponentOrientation . 我正在设置为使用Class ComponentOrientation的布局。 That displays all the button from LEFT_TO_RIGHT and RIGHT_TO_LEFT . 这将显示LEFT_TO_RIGHTRIGHT_TO_LEFT所有按钮。 In short, buttons are displaying in Horizontal orientation. 简而言之,按钮以水平方向显示。 I want to display buttons in a vertical orientation. 我想以垂直方向显示按钮。 So far, I researched that ComponentOrientation comes with fields LEFT_TO_RIGHT , RIGHT_TO_LEFT and Unknown , but all the fields are displaying component in a horizontal orientation. 到目前为止,我研究了ComponentOrientation带有字段LEFT_TO_RIGHTRIGHT_TO_LEFTUnknown ,但是所有字段都以水平方向显示组件。 Is there any way to display button in verticle orientation using Class ComponentOrientaion ? 有没有办法使用Class ComponentOrientaion以垂直方向显示按钮?

Finally, I replaced ComponentOrientation with Jtable . 最后,我用Jtable替换了ComponentOrientation I am able to control the layout with tables easily. 我可以轻松控制表格的布局。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM