94 Sysout.println(t.getTransferData(DataFlavor.allHtmlFlavor).toString()); |
94 Sysout.println(t.getTransferData(DataFlavor.allHtmlFlavor).toString()); |
95 Sysout.println("FRAGMENT:"); |
95 Sysout.println("FRAGMENT:"); |
96 Sysout.println(t.getTransferData(DataFlavor.fragmentHtmlFlavor).toString()); |
96 Sysout.println(t.getTransferData(DataFlavor.fragmentHtmlFlavor).toString()); |
97 Sysout.println("SELECTION:"); |
97 Sysout.println("SELECTION:"); |
98 Sysout.println(t.getTransferData(DataFlavor.selectionHtmlFlavor).toString()); |
98 Sysout.println(t.getTransferData(DataFlavor.selectionHtmlFlavor).toString()); |
99 } catch (UnsupportedFlavorException e) { |
99 } catch (UnsupportedFlavorException | IOException e) { |
100 e.printStackTrace(); |
|
101 } catch (IOException e) { |
|
102 e.printStackTrace(); |
100 e.printStackTrace(); |
103 } |
101 } |
104 |
102 |
105 } |
103 } |
106 } |
104 } |
114 " Drag and drop it on the red panel", |
112 " Drag and drop it on the red panel", |
115 " IMPORTANT NOTE: the page should be stored locally.", |
113 " IMPORTANT NOTE: the page should be stored locally.", |
116 " otherwise for instance iexplore can prohibit drag and drop from", |
114 " otherwise for instance iexplore can prohibit drag and drop from", |
117 " the browser to other applications because of", |
115 " the browser to other applications because of", |
118 " the protected mode restrictions.", |
116 " the protected mode restrictions.", |
|
117 " On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor", |
119 "3) Check the data in the output area of this dialog", |
118 "3) Check the data in the output area of this dialog", |
120 "5) The output should not contain information that any of", |
119 "5) The output should not contain information that any of", |
121 " flavors is not present in the system clipboard", |
120 " flavors is not present in the system clipboard", |
122 "6) The output should contain data in three different formats", |
121 "6) The output should contain data in three different formats", |
123 " provided by the system clipboard", |
122 " provided by the system clipboard", |