MCPcopy Create free account
hub / github.com/Kitware/VTK / buildFrame

Method buildFrame

Wrapping/Java/vtk/sample/ReleaseVtkPanel.java:108–116  ·  view source on GitHub ↗
(String title, JComponent content, int width, int height)

Source from the content-addressed store, hash-verified

106 }
107
108 public static JFrame buildFrame(String title, JComponent content, int width, int height) {
109 JFrame f = new JFrame(title);
110 f.getContentPane().setLayout(new BorderLayout());
111 f.getContentPane().add(content, BorderLayout.CENTER);
112 f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
113 f.setSize(width, height);
114 f.setLocationRelativeTo(null);
115 return f;
116 }
117}

Callers 2

actionPerformedMethod · 0.95
runMethod · 0.95

Calls 2

setSizeMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected