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

24
LINES

< > BotCompany Repo | #1034104 // BalloonTip Test

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

Download Jar. Uses 61K of libraries. Click here for Pure Java version (11832L/71K).

!7

p-awt {
  var button = new JButton("Yo yo yo");
  
  // Create the look for our balloon tip
  EdgedBalloonStyle style = new(Color.WHITE, Color.BLUE);
    
  // Now construct the balloon tip
  BalloonTip balloonTip = new(
    button,
    new JLabel("<html>The <font color=\"#0000ff\">balloon tip</font> is attached to the button.</html>"),
    style,
    BalloonTip.Orientation.LEFT_ABOVE,
    BalloonTip.AttachLocation.ALIGNED,
    30, 10,
    true
  );
  
  ToolTipUtils.balloonToToolTip(balloonTip, 200, 3000);
  
  showFrame(jfullcenter(button));
  
}

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: 82 / 533
Version history: 6 change(s)
Referenced in: [show references]