Download Jar. Uses 61K of libraries. Click here for Pure Java version (11832L/71K).
1 | !7 |
2 | |
3 | p-awt {
|
4 | var button = new JButton("Yo yo yo");
|
5 | |
6 | // Create the look for our balloon tip |
7 | EdgedBalloonStyle style = new(Color.WHITE, Color.BLUE); |
8 | |
9 | // Now construct the balloon tip |
10 | BalloonTip balloonTip = new( |
11 | button, |
12 | new JLabel("<html>The <font color=\"#0000ff\">balloon tip</font> is attached to the button.</html>"),
|
13 | style, |
14 | BalloonTip.Orientation.LEFT_ABOVE, |
15 | BalloonTip.AttachLocation.ALIGNED, |
16 | 30, 10, |
17 | true |
18 | ); |
19 | |
20 | ToolTipUtils.balloonToToolTip(balloonTip, 200, 3000); |
21 | |
22 | showFrame(jfullcenter(button)); |
23 | |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034104 |
| Snippet name: | BalloonTip Test |
| Eternal ID of this version: | #1034104/7 |
| Text MD5: | 9c34b8b8e23791df6ffdc392ad2328a3 |
| Transpilation MD5: | 6013281908a6d88888b1224d637639a1 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-22 16:09:15 |
| Source code size: | 581 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 467 / 1356 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |