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

16
LINES

< > BotCompany Repo | #1035150 // JSelectableDirLabel

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (13484L) is out of date.

sclass JSelectableDirLabel > JFilePathLabel {
  transient JButton selectButton;
  
  *() {}
  *(File dir) { super(dir); }
  
  void makeButtons :: after {
    selectButton = toolTip("Select a directory",
      jbutton("Choose...", l0 showSelectDialog);
    buttons.add(selectButton);
  }
  
  void showSelectDialog {
    showDirChooser(file(), l1 setFile);
  }
}

Author comment

Began life as a copy of #1034207

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035150
Snippet name: JSelectableDirLabel
Eternal ID of this version: #1035150/2
Text MD5: 8542c24a544d8a09a0bf8de7e7155c91
Author: stefan
Category: javax / screen recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-01 22:14:12
Source code size: 377 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 220
Version history: 1 change(s)
Referenced in: [show references]