I’ve created the following class and would like to incorporate it into Matisse so that I can drop and place it on a Form visually:
package test.Example1;
import java.awt.*;
import javax.swing.JPanel;
public class MyJPanel extends JPanel {
@Override
protected void paintComponent(Graphics g) {
g.setColor(Color.orange);
g.fillRect(20,50,100,100);
}
}
Can that be done? If so, how?