private void createLayout() {
getContentPane().removeAll();
setTitle(view.getController().getModel().getName() + HelperString.COLON + HelperString.SPACE + localizer.getValue(HelperResource.RES_ACTION_INFO));
final JPanel panel = new Panel(new BorderLayout());
panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 5, 10));
final JTabbedPane tab = new PaneTab();
final JTable taApplication = new Table(HelperMap.toArray(view.getController().getReport()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}){
private static final long serialVersionUID = 5956530506987984746L;
@Override
public boolean isCellEditable(final int rowIndex, final int colIndex) {
return false;
}
};
final JScrollPane scrollApplication = new PaneScroll(taApplication);
tab.addTab(localizer.getValue(HelperResource.RES_LABEL_APPLICATION), view.getController().getScaledIcon(Icon.LOGO), scrollApplication, localizer.getTooltip(HelperResource.RES_LABEL_APPLICATION));
final JTable taJava = new Table(HelperMap.toArray(HelperEnvironment.getReportJava()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}) {
private static final long serialVersionUID = 5956530506987984746L;
@Override
public boolean isCellEditable(final int rowIndex, final int colIndex) {
return false;
}
};
final JScrollPane scrollJava = new PaneScroll(taJava);
tab.addTab(localizer.getValue(HelperResource.RES_LABEL_JAVA), view.getController().getScaledIcon(Icon.JAVA), scrollJava, localizer.getTooltip(HelperResource.RES_LABEL_JAVA));
final JTable taOS = new Table(HelperMap.toArray(HelperEnvironment.getReportOS()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}) {
private static final long serialVersionUID = 5956530506987984746L;
@Override
public boolean isCellEditable(final int rowIndex, final int colIndex) {
return false;
}
};
final JScrollPane scrollOS = new PaneScroll(taOS);
final ImageIcon iconOS;
if (Platform.MAC_OSX == HelperEnvironment.getPlatform()) {
iconOS = view.getController().getScaledIcon(Icon.MAC);
} else
iconOS = Platform.WINDOWS == HelperEnvironment.getPlatform() ? view.getController().getScaledIcon(Icon.WINDOWS) : view.getController().getScaledIcon(Icon.LINUX);
tab.addTab(localizer.getValue(HelperResource.RES_LABEL_OS), iconOS, scrollOS, localizer.getTooltip(HelperResource.RES_LABEL_OS));
final JTable taSystem = new Table(HelperMap.toArray(HelperEnvironment.getReportSystem()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}) {
private static final long serialVersionUID = -8531838594552715361L;
@Override
public boolean isCellEditable(final int rowIndex, final int colIndex) {
return false;
}
};
final JScrollPane scrollSystem = new PaneScroll(taSystem);
tab.addTab(localizer.getValue(HelperResource.RES_LABEL_SYSTEM), view.getController().getScaledIcon(Icon.SYSTEM), scrollSystem, localizer.getTooltip(HelperResource.RES_LABEL_SYSTEM));
final JTable taUser = new Table(HelperMap.toArray(HelperEnvironment.getReportUser()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}){
private static final long serialVersionUID = 1327561378424760584L;
@Override
public boolean isCellEditable(final int rowIndex, final int colIndex) {
return false;
}
};
// final JTextArea taUser = new TextArea();
// taUser.setEditable(false);
// taUser.append(HelperEnvironment.getReportUser());
final JScrollPane scrollUser = new PaneScroll(taUser);
// taUser.setCaretPosition(0);
tab.addTab(localizer.getValue(HelperResource.RES_LABEL_USER), view.getController().getScaledIcon(Icon.USER), scrollUser, localizer.getTooltip(HelperResource.RES_LABEL_USER));
panel.add(tab, BorderLayout.CENTER);
final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
panel.add(group, BorderLayout.SOUTH);
getContentPane().add(panel);
// pack();
}