mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-27 12:46:22 +01:00
Add clear console button
This commit is contained in:
parent
657cbe89b5
commit
23a05d1299
@ -81,13 +81,21 @@ public class ConsoleFrame extends JFrame {
|
|||||||
*/
|
*/
|
||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
JButton pastebinButton = new JButton(SharedLocale.tr("console.uploadLog"));
|
JButton pastebinButton = new JButton(SharedLocale.tr("console.uploadLog"));
|
||||||
|
JButton clearLogButton = new JButton(SharedLocale.tr("console.clearLog"));
|
||||||
buttonsPanel = new LinedBoxPanel(true);
|
buttonsPanel = new LinedBoxPanel(true);
|
||||||
|
|
||||||
buttonsPanel.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
|
buttonsPanel.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
|
||||||
buttonsPanel.addElement(pastebinButton);
|
buttonsPanel.addElement(pastebinButton);
|
||||||
|
buttonsPanel.addElement(clearLogButton);
|
||||||
|
|
||||||
add(buttonsPanel, BorderLayout.NORTH);
|
add(buttonsPanel, BorderLayout.NORTH);
|
||||||
add(messageLog, BorderLayout.CENTER);
|
add(messageLog, BorderLayout.CENTER);
|
||||||
|
clearLogButton.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
messageLog.clear();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
pastebinButton.addActionListener(new ActionListener() {
|
pastebinButton.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -125,6 +125,7 @@ console.closeWindow=Close Window
|
|||||||
console.hideWindow=Hide Window
|
console.hideWindow=Hide Window
|
||||||
console.confirmKill=Are sure that you wish to close the game forcefully? You may lose data.
|
console.confirmKill=Are sure that you wish to close the game forcefully? You may lose data.
|
||||||
console.confirmKillTitle=Are you sure?
|
console.confirmKillTitle=Are you sure?
|
||||||
|
console.clearLog=Clear
|
||||||
|
|
||||||
downloader.downloadingItem=Downloading {0}...
|
downloader.downloadingItem=Downloading {0}...
|
||||||
downloader.downloadingList=Downloading {0} files... ({1} remaining, {2} failed)
|
downloader.downloadingList=Downloading {0} files... ({1} remaining, {2} failed)
|
||||||
|
Loading…
Reference in New Issue
Block a user