Skip to content
Open
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions src/LogFilterMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public void windowClosing(WindowEvent e)
final String INI_CMD_COUNT = "CMD_COUNT";
final String INI_CMD = "CMD_";
final String INI_FONT_TYPE = "FONT_TYPE";
final String INI_FONT_SIZE = "FONT_SIZE";
final String INI_WORD_FIND = "WORD_FIND";
final String INI_WORD_REMOVE = "WORD_REMOVE";
final String INI_TAG_SHOW = "TAG_SHOW";
Expand Down Expand Up @@ -447,6 +448,11 @@ void loadFilter()
String strFontType = p.getProperty(INI_FONT_TYPE);
if(strFontType != null && strFontType.length() > 0)
m_jcFontType.setSelectedItem(p.getProperty(INI_FONT_TYPE));
String strFontSize = p.getProperty(INI_FONT_SIZE);
if(strFontSize != null && strFontSize.length() > 0) {
m_tfFontSize.setText(strFontSize);
m_tbLogTable.setFontSize(Integer.parseInt(strFontSize));
}
m_tfFindWord.setText(p.getProperty(INI_WORD_FIND));
m_tfRemoveWord.setText(p.getProperty(INI_WORD_REMOVE));
m_tfShowTag.setText(p.getProperty(INI_TAG_SHOW));
Expand Down Expand Up @@ -481,6 +487,7 @@ void saveFilter()
Properties p = new Properties();
// p.setProperty( INI_LAST_DIR, m_strLastDir );
p.setProperty(INI_FONT_TYPE, (String)m_jcFontType.getSelectedItem());
p.setProperty(INI_FONT_SIZE, m_tfFontSize.getText());
p.setProperty(INI_WORD_FIND, m_tfFindWord.getText());
p.setProperty(INI_WORD_REMOVE, m_tfRemoveWord.getText());
p.setProperty(INI_TAG_SHOW, m_tfShowTag.getText());
Expand Down