Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1014096 // Fixed With Label Spike [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (984L/7K).

!7

p-awt {
  S s = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eu nulla urna. Donec sit amet risus nisl, a porta enim. Quisque luctus, ligula eu scelerisque gravida, tellus quam vestibulum urna, ut aliquet sapien purus sed erat. Pellentesque consequat vehicula magna, eu aliquam magna interdum porttitor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed sollicitudin sapien non leo tempus lobortis. Morbi semper auctor ipsum, a semper quam elementum a. Aliquam eget sem metus.";
  
  S html1 = "<html><body style='width: ";
  S html2 = "px'>";

  JOptionPane.showMessageDialog(
    null, new JLabel(html1 + "200" + html2 + s));
  JOptionPane.showMessageDialog(
    null, new JLabel(html1 + "300" + html2 + s));
}

Author comment

from https://stackoverflow.com/questions/7861724/is-there-a-word-wrap-property-for-jlabel

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nnmtytuibrzp, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014096
Snippet name: Fixed With Label Spike [OK]
Eternal ID of this version: #1014096/6
Text MD5: 1b9a7d9c347fc638ec9b0a0c275a0b77
Transpilation MD5: c031c9da57360e347e0460efdbf19146
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-07 13:15:42
Source code size: 793 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 390 / 948
Version history: 5 change(s)
Referenced in: [show references]