Download Jar. Libraryless. Click here for Pure Java version (984L/7K).
1 | !7 |
2 | |
3 | p-awt { |
4 | 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."; |
5 | |
6 | S html1 = "<html><body style='width: "; |
7 | S html2 = "px'>"; |
8 | |
9 | JOptionPane.showMessageDialog( |
10 | null, new JLabel(html1 + "200" + html2 + s)); |
11 | JOptionPane.showMessageDialog( |
12 | null, new JLabel(html1 + "300" + html2 + s)); |
13 | } |
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: | 392 / 952 |
Version history: | 5 change(s) |
Referenced in: | [show references] |