https://wiki.apache.org/jackrabbit/FrontPage
http://jackrabbit.apache.org/jcr/jackrabbit-configuration.html
https://wiki.apache.org/jackrabbit/PersistenceManagerFAQ
https://wiki.apache.org/jackrabbit/CacheManager
https://github.com/nabils/jackrabbit/blob/master/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/config/RepositoryConfigTest.java
https://jackrabbit.apache.org/api/2.8/org/apache/jackrabbit/core/config/RepositoryConfig.html
Sunday, April 30, 2017
Wednesday, April 26, 2017
Tuesday, April 25, 2017
JSplitPane: Programmatically hide/show
http://stackoverflow.com/questions/4934499/how-to-set-jsplitpane-divider-collapse-expand-state/5127898#5127898
http://stackoverflow.com/questions/9177182/how-can-you-programmatically-set-the-jsplitpane-to-hide-the-right-bottom-compone
Sample Code
jSplitPane3.getRightComponent().setMinimumSize(new Dimension());
jSplitPane3.addAncestorListener(new AncestorListener() {
@Override
public void ancestorAdded(AncestorEvent event) {
try {
jSplitPane3.setDividerLocation(1.0); // Divider is positioned
Field m = BasicSplitPaneUI.class.getDeclaredField("keepHidden");
m.setAccessible(true);
m.set(jSplitPane3.getUI(), true); //sp.removeAncestorListener(this); // Uncomment for a one-shot event
jSplitPane3.removeAncestorListener(this); // Uncomment for a one-shot event
} catch (NoSuchFieldException ex) {
logger.error("", ex);
} catch (SecurityException ex) {
logger.error("", ex);
} catch (IllegalArgumentException ex) {
logger.error("", ex);
} catch (IllegalAccessException ex) {
logger.error("", ex);
}
}
@Override
public void ancestorRemoved(AncestorEvent event) {
}
@Override
public void ancestorMoved(AncestorEvent event) {
}
});
Another
if (jSplitPane3.getDividerLocation() > jSplitPane3.getMaximumDividerLocation()) {
}
http://stackoverflow.com/questions/9177182/how-can-you-programmatically-set-the-jsplitpane-to-hide-the-right-bottom-compone
Sample Code
jSplitPane3.getRightComponent().setMinimumSize(new Dimension());
jSplitPane3.addAncestorListener(new AncestorListener() {
@Override
public void ancestorAdded(AncestorEvent event) {
try {
jSplitPane3.setDividerLocation(1.0); // Divider is positioned
Field m = BasicSplitPaneUI.class.getDeclaredField("keepHidden");
m.setAccessible(true);
m.set(jSplitPane3.getUI(), true); //sp.removeAncestorListener(this); // Uncomment for a one-shot event
jSplitPane3.removeAncestorListener(this); // Uncomment for a one-shot event
} catch (NoSuchFieldException ex) {
logger.error("", ex);
} catch (SecurityException ex) {
logger.error("", ex);
} catch (IllegalArgumentException ex) {
logger.error("", ex);
} catch (IllegalAccessException ex) {
logger.error("", ex);
}
}
@Override
public void ancestorRemoved(AncestorEvent event) {
}
@Override
public void ancestorMoved(AncestorEvent event) {
}
});
Another
if (jSplitPane3.getDividerLocation() > jSplitPane3.getMaximumDividerLocation()) {
}
Monday, April 17, 2017
Saturday, April 15, 2017
About encoding use in Java
http://javarevisited.blogspot.sg/2012/01/get-set-default-character-encoding.html
http://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding
http://stackoverflow.com/questions/28484064/windows-1252-to-utf-8
http://stackoverflow.com/questions/2766780/utf-8-character-encoding-in-java
https://blog.eogn.com/2014/07/28/remove-text-formatting-when-copying-and-pasting/
http://kb.mailchimp.com/campaigns/design/prevent-formatting-problems-with-paste-from-rich-text
http://www.cp1252.com/
Wednesday, April 12, 2017
Thursday, April 6, 2017
Dealing with encoding
http://stackoverflow.com/questions/15545720/how-to-fix-invalid-byte-1-of-1-byte-utf-8-sequence
https://www.mkyong.com/java/sax-error-malformedbytesequenceexception-invalid-byte-1-of-1-byte-utf-8-sequence/
https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/
https://www.mkyong.com/java/sax-error-malformedbytesequenceexception-invalid-byte-1-of-1-byte-utf-8-sequence/
https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/
Excel: check if cell contains only alphanumeric
https://www.techonthenet.com/excel/formulas/alphanumeric.php
http://stackoverflow.com/questions/29149916/formula-to-eliminate-all-but-alpha-characters
http://stackoverflow.com/questions/15723672/how-to-remove-all-non-alphanumeric-characters-from-a-string-except-period-and-sp
http://stackoverflow.com/questions/29149916/formula-to-eliminate-all-but-alpha-characters
http://stackoverflow.com/questions/15723672/how-to-remove-all-non-alphanumeric-characters-from-a-string-except-period-and-sp
Subscribe to:
Posts (Atom)