• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make jlable text selectable and copyable ?

 
Kevin Pang
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to make jlable text selectable and copyable ?
i want to make the text be copied .
thanks.
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a non-editable JTextField. You can play with its properties (background, foreground, border) to make it look like a label.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!