Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark update and correction #844

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ac5d1ae
Update Default.java
Will-LWE Jul 17, 2023
be4d4a2
Update Enterprise.java
Will-LWE Jul 17, 2023
913c5ef
Update default.properties
Will-LWE Jul 17, 2023
d9d2fd4
Update ContactList.java
Will-LWE Jul 17, 2023
daf10d4
Update BookmarkPlugin.java
Will-LWE Jul 17, 2023
d14f7ae
Update PluginViewer.java
Will-LWE Jul 17, 2023
7340e4d
Update PreferenceDialog.java
Will-LWE Jul 17, 2023
7f661b7
Update VCardEditor.java
Will-LWE Jul 17, 2023
eff6d58
Update BroadcastHistoryFrame.java
Will-LWE Jul 17, 2023
8f2defc
Update ChatFrame.java
Will-LWE Jul 17, 2023
50f86c9
Update MainWindow.java
Will-LWE Jul 17, 2023
aa4a6a8
Update BroadcastDialog.java
Will-LWE Jul 17, 2023
3b3c396
Update ConferenceRoomBrowser.java
Will-LWE Jul 17, 2023
4016632
Update VCardEditor.java
Will-LWE Jul 17, 2023
0516a1d
Update InvitationDialog.java
Will-LWE Jul 17, 2023
fe43f60
Update RoomCreationDialog.java
Will-LWE Jul 17, 2023
9097187
Update GroupChatParticipantList.java
Will-LWE Jul 17, 2023
9a6b6d0
Update GroupChatRoom.java
Will-LWE Jul 17, 2023
f4dee50
Update DataFormDialog.java
Will-LWE Jul 17, 2023
650d4fb
Update HistoryTranscript.java
Will-LWE Jul 17, 2023
39e67d4
Update ScratchPadPlugin.java
Will-LWE Jul 17, 2023
a0b125c
Update UserSearchService.java
Will-LWE Jul 17, 2023
19ddc1e
Update ContactInfoWindow.java
Will-LWE Jul 17, 2023
1bb8727
Update VCardEditor.java
Will-LWE Jul 17, 2023
9bc975b
Update VCardManager.java
Will-LWE Jul 17, 2023
0f93ac6
Add files via upload
Will-LWE Jul 17, 2023
19db49a
Add files via upload
Will-LWE Jul 17, 2023
7019c03
Add files via upload
Will-LWE Jul 17, 2023
d8e411a
Add files via upload
Will-LWE Jul 17, 2023
4c56efd
Update otrplugin_i18n_fr.properties
Will-LWE Jul 17, 2023
ec20485
Update roar_i18n_fr.properties
Will-LWE Jul 17, 2023
85952f4
Update sip_spark_i18n_fr.properties
Will-LWE Jul 17, 2023
66e7d2c
Update spellchecker_i18n_fr.properties
Will-LWE Jul 17, 2023
0b4f9b4
Add files via upload
Will-LWE Jul 17, 2023
4ef9788
Update transferguard_i18n_fr.properties
Will-LWE Jul 17, 2023
fc63fe1
Update spark_i18n_fr.properties
Will-LWE Jul 17, 2023
1976cf9
Update tictactoe_i18n_fr.properties
Will-LWE Jul 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/src/main/java/org/jivesoftware/MainWindow.java
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ private MainWindow(String title, ImageIcon icon) {
public void componentResized( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setMainWindowBounds( getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}

@Override
public void componentMoved( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setMainWindowBounds( getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
} );

Expand Down
7 changes: 7 additions & 0 deletions core/src/main/java/org/jivesoftware/resource/Default.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ public class Default {
public static final String PROXY_PROTOCOL = "PROXY_PROTOCOL";
public static final String IDLE_LOCK = "IDLE_LOCK";
public static final String IDLE_TIME = "IDLE_TIME";
public static final String UNFILEDGROUP_DISABLED = "UNFILEDGROUP_DISABLED";
public static final String ALLOW_NICKNAME_CHANGE_DISABLED = "ALLOW_NICKNAME_CHANGE_DISABLED";
public static final String CONFERENCE_BUTTON_SETTINGS_DISABLED = "CONFERENCE_BUTTON_SETTINGS_DISABLED";
public static final String CONFERENCE_BUTTON_REGISTER_DISABLED = "CONFERENCE_BUTTON_REGISTER_DISABLED";
public static final String SHOW_FULL_JID_ADDRESS = "SHOW_FULL_JID_ADDRESS";
public static final String EDIT_AVATAR_ONLY = "EDIT_AVATAR_ONLY";
public static final String DISABLE_LOOKUP_PROFILE = "DISABLE_LOOKUP_PROFILE";

private static final ClassLoader cl = SparkRes.class.getClassLoader();

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,14 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
public void componentResized( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setBroadcastHistoryBounds( getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}

@Override
public void componentMoved( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setBroadcastHistoryBounds( getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
} );
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/java/org/jivesoftware/spark/ui/ChatFrame.java
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void componentResized( ComponentEvent e )
if ( e.getComponent().getClass().getSimpleName().equalsIgnoreCase( "ChatFrame" ) )
{
LayoutSettingsManager.getLayoutSettings().setChatFrameBounds( getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
}

Expand All @@ -111,6 +112,7 @@ public void componentMoved( ComponentEvent e )
if ( e.getComponent().getClass().getSimpleName().equalsIgnoreCase( "ChatFrame" ) )
{
LayoutSettingsManager.getLayoutSettings().setChatFrameBounds( getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
}
} );
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Full JID address can be showed instead of the username when hovering with the mouse cursor over a user in the contact list, from default.properties.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import javax.swing.JTextArea;
import javax.swing.JWindow;

import org.jivesoftware.resource.Default;
import org.jivesoftware.resource.Res;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.packet.Presence;
Expand All @@ -39,6 +40,7 @@
import org.jivesoftware.spark.util.GraphicUtils;
import org.jivesoftware.spark.util.ModelUtil;
import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
import org.jivesoftware.sparkimpl.plugin.gateways.transports.Transport;
import org.jivesoftware.sparkimpl.plugin.gateways.transports.TransportUtils;
import org.jxmpp.jid.Jid;
Expand Down Expand Up @@ -270,10 +272,30 @@ public void customizeUI(ContactItem contactItem) {
Transport transport = TransportUtils.getTransport(contactItem.getJid().asDomainBareJid());
if (transport != null) {
fullJIDLabel.setIcon(transport.getIcon());
fullJIDLabel.setText(transport.getName() + " - " + contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
//fullJIDLabel.setText(transport.getName() + " - " + contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
//if (Default.getBoolean(Default.SHOW_FULL_JID_ADDRESS) && Enterprise.containsFeature(Enterprise.SHOW_FULL_JID_ADDRESS_FEATURE)) {
// fullJIDLabel.setText(transport.getName() + " - " + contactItem.getJid().asUnescapedString());
// } else {
// fullJIDLabel.setText(transport.getName() + " - " + contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
// }
if (Default.getBoolean(Default.SHOW_FULL_JID_ADDRESS)) {
fullJIDLabel.setText(transport.getName() + " - " + contactItem.getJid().asUnescapedString());
} else {
fullJIDLabel.setText(transport.getName() + " - " + contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
}
}
else {
fullJIDLabel.setText(contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
//fullJIDLabel.setText(contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
//if (Default.getBoolean(Default.SHOW_FULL_JID_ADDRESS) && Enterprise.containsFeature(Enterprise.SHOW_FULL_JID_ADDRESS_FEATURE)) {
// fullJIDLabel.setText(contactItem.getJid().asUnescapedString());
// } else {
// fullJIDLabel.setText(contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
// }
if (Default.getBoolean(Default.SHOW_FULL_JID_ADDRESS)) {
fullJIDLabel.setText(contactItem.getJid().asUnescapedString());
} else {
fullJIDLabel.setText(contactItem.getJid().getLocalpartOrThrow().asUnescapedString());
}
fullJIDLabel.setIcon(null);
}

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Unfiled Group can be disabled from default.properties

Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ public ContactList() {
}

// Add ActionListener(s) to menus
addContactGroup(unfiledGroup);
//addContactGroup(unfiledGroup);
//if (!Default.getBoolean(Default.UNFILEDGROUP_DISABLED) && Enterprise.containsFeature(Enterprise.UNFILEDGROUP_FEATURE)) addContactGroup(unfiledGroup);
if (!Default.getBoolean(Default.UNFILEDGROUP_DISABLED)) addContactGroup(unfiledGroup);
addContactGroup(offlineGroup);

showHideMenu.setSelected(false);
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -649,12 +649,14 @@ public void keyPressed(KeyEvent e) {
public void componentResized( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setConferenceRoomBrowserBounds( dlg.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}

@Override
public void componentMoved( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setConferenceRoomBrowserBounds( dlg.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
} );

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Conference Settings window is better adjusted on the screen.

Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public DataFormDialog(JFrame parent, final MultiUserChat chat, final FillableFor
dialog.getContentPane().add(bottomPanel, BorderLayout.SOUTH);

dialog.pack();
dialog.setSize(600, 400);
//dialog.setSize(600, 400);
dialog.setSize(710, 470);
GraphicUtils.centerWindowOnScreen(dialog);
dialog.setVisible(true);

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Change Nickname button can be disabled from default.properties.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.jivesoftware.spark.ui.conferences;

import org.jdesktop.swingx.JXList;
import org.jivesoftware.resource.Default;
import org.jivesoftware.resource.Res;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.PresenceListener;
Expand All @@ -39,6 +40,7 @@
import org.jivesoftware.spark.ui.rooms.GroupChatRoom;
import org.jivesoftware.spark.util.ModelUtil;
import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
import org.jivesoftware.sparkimpl.settings.local.SettingsManager;
import org.jxmpp.jid.BareJid;
Expand Down Expand Up @@ -695,7 +697,9 @@ public void actionPerformed(ActionEvent actionEvent) {
SparkRes.getImageIcon(SparkRes.TYPING_TRAY));

if (allowNicknameChange) {
popup.add(changeNicknameAction);
//popup.add(changeNicknameAction);
//if (!Default.getBoolean(Default.ALLOW_NICKNAME_CHANGE_DISABLED) && Enterprise.containsFeature(Enterprise.ALLOW_NICKNAME_CHANGE_FEATURE)) popup.add(changeNicknameAction);
if (!Default.getBoolean(Default.ALLOW_NICKNAME_CHANGE_DISABLED)) popup.add(changeNicknameAction);
}
}

Expand Down Expand Up @@ -988,7 +992,9 @@ public void actionPerformed(ActionEvent actionEvent) {
SparkRes.getImageIcon(SparkRes.CONFERENCE_IMAGE_16x16));

if (index != -1) {
popup.addSeparator();
//popup.addSeparator();
//if (!Default.getBoolean(Default.ALLOW_NICKNAME_CHANGE_DISABLED) && Enterprise.containsFeature(Enterprise.ALLOW_NICKNAME_CHANGE_FEATURE)) popup.addSeparator();
if (!Default.getBoolean(Default.ALLOW_NICKNAME_CHANGE_DISABLED)) popup.addSeparator();
}
popup.add(inviteAction);

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : The window of InvitationDialog is now centered to the screen

Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ public void inviteUsersToRoom(final DomainBareJid serviceName, Collection<Bookma
dlg.setSize(500, 450);
dlg.setResizable(true);
dlg.setContentPane(mainPanel);
dlg.setLocationRelativeTo(parent);
//dlg.setLocationRelativeTo(parent);
dlg.setLocationRelativeTo(null);


PropertyChangeListener changeListener = e -> {
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : The window RoomCreationDialog is now centered to the screen

Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public MultiUserChat createGroupChat(Component parent, final DomainBareJid servi
dlg.pack();
dlg.setSize(400, 350);
dlg.setContentPane(mainPanel);
dlg.setLocationRelativeTo(parent);
//dlg.setLocationRelativeTo(parent);
dlg.setLocationRelativeTo(null);


PropertyChangeListener changeListener = new PropertyChangeListener() {
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Conference Settings button can be disabled from default.properties.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package org.jivesoftware.spark.ui.rooms;

import org.jivesoftware.resource.Default;
import org.jivesoftware.resource.Res;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.SmackException;
Expand Down Expand Up @@ -48,6 +49,7 @@
import org.jivesoftware.spark.util.ModelUtil;
import org.jivesoftware.spark.util.UIComponentRegistry;
import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.sparkimpl.plugin.manager.Enterprise;
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
import org.jivesoftware.sparkimpl.settings.local.SettingsManager;
import org.jxmpp.jid.*;
Expand Down Expand Up @@ -278,9 +280,13 @@ public boolean handleDefaultAction( MouseEvent e )
final RolloverButton thema = UIComponentRegistry.getButtonFactory().createTemaButton();
final RolloverButton register = UIComponentRegistry.getButtonFactory().createRegisterButton();

addControllerButton( settings );
//addControllerButton( settings );
//if (!Default.getBoolean(Default.CONFERENCE_BUTTON_SETTINGS_DISABLED) && Enterprise.containsFeature(Enterprise.CONFERENCE_BUTTON_SETTINGS_FEATURE)) addControllerButton( settings );
if (!Default.getBoolean(Default.CONFERENCE_BUTTON_SETTINGS_DISABLED)) addControllerButton( settings );
addControllerButton( thema );
addControllerButton( register );
//addControllerButton( register );
//if (!Default.getBoolean(Default.CONFERENCE_BUTTON_REGISTER_DISABLED) && Enterprise.containsFeature(Enterprise.CONFERENCE_BUTTON_REGISTER_FEATURE)) addControllerButton( register );
if (!Default.getBoolean(Default.CONFERENCE_BUTTON_REGISTER_DISABLED)) addControllerButton( register );

settings.addActionListener( new AbstractAction()
{
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,14 @@ public void invokeDialog() {
public void componentResized( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setBroadcastMessageBounds( dlg.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}

@Override
public void componentMoved( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setBroadcastMessageBounds( dlg.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
} );

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Bookmarks menu is visible only if a bookmark is present.

Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public void initialize() {

if (bookmarkMenu.getMenuComponentCount() > 0) {
SparkManager.getMainWindow().getMenu().add(bookmarkMenu, 3);
bookmarkMenu.setVisible(false);
int numberOfBookmark = bookmarkMenu.getItemCount();
if (numberOfBookmark > 1 ) bookmarkMenu.setVisible(true);
}

BookmarksUI bookmarksUi = ConferenceServices.getBookmarkedConferences();
Expand Down Expand Up @@ -123,6 +126,9 @@ public void rescan(JMenu bookmarkMenu) {
SparkManager.getMainWindow().getMenu().invalidate();
SparkManager.getMainWindow().getMenu().validate();
SparkManager.getMainWindow().getMenu().repaint();
bookmarkMenu.setVisible(false);
int numberOfBookmark = bookmarkMenu.getItemCount();
if (numberOfBookmark > 1 ) bookmarkMenu.setVisible(true);
} catch (XMPPException | SmackException | InterruptedException ex) {
Log.error(ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public class Enterprise {
public static final String VERSION_AS_RESOURCE_FEATURE = "version-as-resource";
public static final String PLUGINS_BLACKLIST_NODE = "spark-plugins-blacklist";
public static final String IDLE_FEATURE = "idle";
public static final String UNFILEDGROUP_FEATURE = "unfiledGroup";
public static final String ALLOW_NICKNAME_CHANGE_FEATURE = "nickname-change";
public static final String CONFERENCE_BUTTON_SETTINGS_FEATURE = "conference-settings-button";
public static final String CONFERENCE_BUTTON_REGISTER_FEATURE = "conference-register-button";
public static final String SHOW_FULL_JID_ADDRESS_FEATURE = "full-jid-address";
public static final String EDIT_AVATAR_FEATURE = "edit-avatar-only";
public static final String DISABLE_LOOKUP_PROFILE_FEATURE = "disable-lookup-profile";

public static final String IBB_FEATURE = "ibb-only";

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : The windows of ScratchPadPlugin (Notes and Tasks) are larger and adapted to the screen.

Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ public void actionPerformed(ActionEvent e) {
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add(pane, BorderLayout.CENTER);
frame.pack();
frame.setSize(400, 400);
//frame.setSize(400, 400);
frame.setSize(600, 400);

final Action saveAction = new AbstractAction() {
private static final long serialVersionUID = -4287799161421970177L;
Expand Down Expand Up @@ -465,7 +466,8 @@ public void keyReleased(KeyEvent e) {
mainPanel.add(cancelButton, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));

frame.pack();
frame.setSize(400, 400);
//frame.setSize(400, 400);
frame.setSize(600, 400);


GraphicUtils.centerWindowOnComponent(frame, SparkManager.getMainWindow());
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : The window of HistoryTranscrip (chat history) is larger and adapted to the screen.

Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirem
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add(mainPanel, BorderLayout.CENTER);
frame.pack();
frame.setSize(600, 400);
//frame.setSize(600, 400);
frame.setSize(800, 600);
window.setCaretPosition(0);
window.requestFocus();
GraphicUtils.centerWindowOnScreen(frame);
Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@ private void invokeViewer()
public void componentResized( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setPluginViewerBounds( dialog.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}

@Override
public void componentMoved( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setPluginViewerBounds( dialog.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
} );

Expand Down
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code relate to : Real time save settings of window size and position.

Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ public void invoke( JFrame parentFrame, PreferencesPanel contentPane )
public void componentResized( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setPreferencesBounds( preferenceDialog.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}

@Override
public void componentMoved( ComponentEvent e )
{
LayoutSettingsManager.getLayoutSettings().setPreferencesBounds( preferenceDialog.getBounds() );
LayoutSettingsManager.saveLayoutSettings();
}
} );
}
Expand Down
Loading