4344454647484950515253
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); panel.setLayout(new GridLayout(1,1)); hist = new JHistogram(this.model); panel.add(hist); add(panel,"Center");