Using Quaqua L&F with embedded Processing sketch
in
Integration and Hardware
•
2 years ago
Dear,
I'm building an Java app that uses Processing for it's plotting capabilities. However when using Quaqua I get
I'm adding the Processing PApplet to Swing like this:
I'm building an Java app that uses Processing for it's plotting capabilities. However when using Quaqua I get
Where templates.ContinuousTreeToProcessing is a class extending PApplet. This is not the case when using system look & feel.
java.lang.ClassCastException: templates.ContinuousTreeToProcessing cannot be cast to javax.swing.JComponent
I'm adding the Processing PApplet to Swing like this:
- continuousTreeToProcessing = new ContinuousTreeToProcessing();
continuousTreeToProcessing.setPreferredSize(new Dimension(2048, 1025));
JScrollPane rightScrollPane = new JScrollPane(
continuousTreeToProcessing,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
add(rightScrollPane, BorderLayout.CENTER);
1