简体   繁体   English

在Java NetBeans IDE中将多行文本写入jButton

[英]Write multipleline text into jButton in Netbeans IDE, java

In jButton,i want to write a title or text on button and it will look like 在jButton中,我想在按钮上写一个标题或文本,它看起来像

Advance
Search
Option

But the button text look like 但是按钮文字看起来像

AdvanceSearchOption

It won't take new line. 不需要换行。 I try change some properties but it won't work. 我尝试更改某些属性,但无法正常工作。

Right click on you button then btn[jButton] - Properties tab will appear. 右键单击您的按钮,然后将出现btn [jButton]-属性选项卡。 Then click text field and paste 然后单击文本字段并粘贴

<html>Advance<br />Search<br />Option</html>

Hope it will work 希望它能工作

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

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