facebook

Is it possible to add a custom JPanel to the Matisse Palette

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #290683 Reply

    wires8
    Member

    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?

    #290698 Reply

    Loyal Water
    Member

    Yes. You can add this as a custom component in the Matisse Palette. There is “Add Form” for .form files and “Add Bean” for classes. The following link explains how to customize the palette:-
    http://www.myeclipseide.com/documentation/quickstarts/m4m/#custom

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Is it possible to add a custom JPanel to the Matisse Palette

You must be logged in to post in the forum log in