Using swing in NodeView

Hi everybody,


i'm trying to create a new node view which shows two text panels.

Like in the example, my NodeView contains a Panel (LogPanel) which extends JPanel.

The problem is the paint method of this panel. [paint(Graphics g)]. If i use something like g.drawString("xyz", 50,50) it works well but if i use this.add(new JLabel("blabla")) nothing shows up.

I tried to use different layouts, differne swing components, ... But it never changed anything?

Is there any working example of a NodeView using swing?




You need to call #setComponent(yourPanel) to add the specific parent component to your NodeView, more details are here.