mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
22 lines
432 B
Java
22 lines
432 B
Java
import javax.swing.*;
|
|
import java.awt.*;
|
|
import javax.swing.*;
|
|
|
|
public class ComponentCaller extends JComponent{
|
|
Component1 component1;
|
|
|
|
public ComponentCaller() {
|
|
component1 = new Component1();
|
|
buildUI();
|
|
}
|
|
|
|
private void buildUI() {
|
|
setLayout(new BorderLayout());
|
|
add(new JScrollPane(component1));
|
|
}
|
|
|
|
public void doSomething(){
|
|
component1.doSomething();
|
|
}
|
|
}
|