How to copy  error message text , that is on JOptionPane window ??

 

It's not something you need to do in Java, it's a Windows thing (and I presume a lot of other OS's have the same behaviour).
If you want to do it automatically, do this:
import java.awt.datatransfer.*;
// when you want to display the error message....
String errorText = ......;
// This could be a String, if you were going to pass an object to JOptionPane, use myObject.toString()
// This should put the string into the system clipboard
Toolkit.getSystemClipboard().setContents(new StringSelection(errorText), this);and make your code implement ClipboardOwner, and have this method:
public void lostOwnership(Clipboard clipboard, Transferable contents)
// I don't see why you'd care that you lost ownership of the clipboard, so do nothing hereI hope this helps,
Radish21

Similar Messages

Maybe you are looking for

  • Safari and camera disappeared from my screen

    Safari and camera has disappeared from my screen. It's the 2:nd time it happens. Got my iphone, brand new, last week. First time it happened, I reset everything. Now it feels like this could be a reoccurring thing, and not fun to reset every time. I'

  • SCHEMAS: Error re-assigning schema to a different workspace

    SITUATION - Apex 4.0 on 11g - Trying to edit workspace to schema assignments - Following instructions here (http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/adm_wrkspc.htm#BABBEEGC) - Have done this successfully before ERROR Get the fol

  • PL/SQL web service: question about stub

    hello, I'm currently learning how to work with PL/SQL Web Services. I have a question about stubs. The point is, I can deploy a web service to the OC4J server and it works. It also works when I create a stub following the WSDL I made with creating th

  • I cant email yahoo friends why?this just started

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/853566]]</blockquote> I cant email my daughter at yahoo,nor can I access yahoo help line didI do something on firefox that is causing this problem as it has never happened b

  • Add fields to IE36 Report

    Hi guys, I have a question about transaction IE36.. What I need is to add some fields to be displayed in the report called by IE36 t-code.. I need to have the ability to add these fields via the "Change Layout Screen". Is there any exit, badi, or som