乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      JLabel Word Wrap

       szarhen 2012-03-23
      Dmitry Zhelezov 
      Greenhorn 

      Joined: Dec 29, 2008
      Posts: 3 
      try the following: 

      [code] 
      JLabel label = new JLabel("<html><table><td width='\" + width + ""\>Some very very very very very long text </td></table></html>") 
      [/code] 
      where width is width you want label to fit on. i used parent panel width - borders width.

      This message was edited 1 time. Last update was at Friday, February 12, 2010 22:48:29 by Dmitry Zhelezov

      Tony Fecteau 
      Greenhorn 

      Joined: Aug 27, 2010
      Posts: 1 
      Use html tags and set preferred size to 1x1. It will automatically resize 
      1.  JLabel label = new JLabel("<html>your text here</html>");  
      2. label.setPreferredSize(new Dimension(11);   

        本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約