标签: java user-interface
这是我的代码段:
JTextArea jta = new JTextArea(); JScrollPane jsp = new JScrollPane(jta); jsp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
它显示向右滚动但仅显示向上和向下箭头。如何使实际滚动条始终可见?