Subclass « JLabel « Java Swing Q&A





1. How do you put a subclass method into a superclasses JLabel?    stackoverflow.com

So here's the class and the super class, question to follow: TestDraw:

package project3;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class TestDraw extends MyShape
{
    public static void main(String[] args) 
    ...

2. DnD with JLabel subclass    coderanch.com

In the DragAndDrop tutorial, in the section "Specifying The Data Format", check the second paragraph (starting with "When using the property name form...") through the third. These are special properties. I set up a test app to duplicate the "Invocation failed" exception. Then looked in the TransferHandler source code and found the string in an exception handler in the importData method. ...