use of com.glitchcog.fontificator.gui.controls.messages.MessageDialog in project ChatGameFontificator by GlitchCog.
the class ControlWindow method build.
/**
* Called separately from construction.
*
* @param logBox
*/
public void build(LogBox logBox) {
constructAboutPopup();
this.messageDialog = new MessageDialog(fProps, chatWindow, this, logBox);
this.bot = new ChatViewerBot();
this.bot.setUsername(fProps.getIrcConfig().getUsername());
this.controlTabs = new ControlTabs(fProps, bot, messageDialog.getCensorPanel(), logBox);
this.controlTabs.build(chatWindow, this);
this.bot.setChatPanel(chatWindow.getChatPanel());
setLayout(new GridLayout(1, 1));
add(controlTabs);
initMenus();
// This wasn't built before the config was loaded into the chat control
// tab, so set it here
setAlwaysOnTopMenu(fProps.getChatConfig().isAlwaysOnTop());
setRememberPositionMenu(fProps.getChatConfig().isRememberPosition());
setAntiAliasMenu(fProps.getChatConfig().isAntiAlias());
setupHelp();
pack();
setMinimumSize(getSize());
setResizable(false);
}
Aggregations