I want to add a JTextArea开发者_如何学JAVA to an application. Normally that textarea contains large content and both horizontal and vertical ScrollBars appear when running that application. I want to
JScrollBar _hor开发者_运维问答izontalScroll; _verticalScroll = new JScrollBar(JScrollBar.VERTICAL);
i have a jdialog with a jpanel inside it.I have jlabels(pictures) on the jpanel.How can i get a vertical scrollbar in jdialog without using te开发者_Python百科xtarea?May be you should try adding your
Here is my code: //this is a JPanel, the gray panel behind the A4 paper public Panel(int w, int h) {//w=624, h=600
If you can I would like someone to help me make my java interface with a开发者_如何学C scrollbar option,so I can go up and down my window.
I am just trying to add a vertical scroll bar to my TextField and TextArea. I am using a ScrollPane and it should createavertical/horizontal scroll bar by default.
I just can\'t get this right. I have a slider to increase my JPanel\'s size (used as a canvas to draw on).
This problem looks trivial, but I can\'t find the solution. When I create a form it contains a JTextArea. I want to put large constant text in it. If the text is say 1000 lines long, I want my JText
I need t开发者_运维百科o encode a whole text while leaving the < and > intact. example <p>Give me 100.000 €!</p>