Author: admin
Un Gaou à Paris
Les meilleures publications des réseaux sociaux
Académie des Professionnels Africains de France
Pour une ingénierie des peuples obscurs
Jajuk
Jajuk is a Java music organizer for all platforms. The main goal of this project is to provide a fully-featured application to advanced users with large or scattered music collections.
License | Open Source |
HomePage | http://www.jajuk.info/ |
Webswing
Webswing is a web server that allows to run any swing application inside your web browser using only pure HTML5.
The best days of swing framework are gone. Desktop applications lost popularity and everything is forced to be online and mobile. But what about existing application? Using applet technology proved to be insecure, rewriting the application to web technology is too expensive. This is where Webswing can help you. With Webswing, your application is securely running on server and user’s browser only displays the application window. All this without changing single line of source code.
License | Open Source |
HomePage | http://webswing.org |
Lazy-loading JTree Node
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
import java.util.Enumeration; import java.util.List; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.MutableTreeNode; import javax.swing.tree.TreeNode; public abstract class AbstractLazyTreeNode extends DefaultMutableTreeNode { private static final long serialVersionUID = 1L; protected boolean childrenLoaded = false;; protected abstract List<AbstractLazyTreeNode> createChildrenNodes(); protected void ensureChildrenAreLoaded() { if (childrenLoaded) { return; } childrenLoaded = true; int i = 0; for (AbstractLazyTreeNode node: createChildrenNodes()) { super.insert(node, i); i++; } } @Override public int getIndex(TreeNode aChild) { ensureChildrenAreLoaded(); return super.getIndex(aChild); } @Override public TreeNode getChildAt(int index) { ensureChildrenAreLoaded(); return super.getChildAt(index); } @Override public int getChildCount() { ensureChildrenAreLoaded(); return super.getChildCount(); } @Override public void insert(MutableTreeNode newChild, int childIndex) { ensureChildrenAreLoaded(); super.insert(newChild, childIndex); } @Override public void remove(int childIndex) { ensureChildrenAreLoaded(); super.remove(childIndex); } @Override public Enumeration<?> children() { ensureChildrenAreLoaded(); return super.children(); } @Override public void remove(MutableTreeNode aChild) { ensureChildrenAreLoaded(); super.remove(aChild); } @Override public void add(MutableTreeNode newChild) { ensureChildrenAreLoaded(); super.add(newChild); } @Override public boolean isNodeDescendant(DefaultMutableTreeNode anotherNode) { ensureChildrenAreLoaded(); return super.isNodeDescendant(anotherNode); } @Override public boolean isNodeRelated(DefaultMutableTreeNode aNode) { ensureChildrenAreLoaded(); return super.isNodeRelated(aNode); } @Override public int getDepth() { ensureChildrenAreLoaded(); return super.getDepth(); } @Override public DefaultMutableTreeNode getNextNode() { ensureChildrenAreLoaded(); return super.getNextNode(); } @Override public DefaultMutableTreeNode getPreviousNode() { ensureChildrenAreLoaded(); return super.getPreviousNode(); } @Override public Enumeration<?> preorderEnumeration() { ensureChildrenAreLoaded(); return super.preorderEnumeration(); } @Override public Enumeration<?> postorderEnumeration() { ensureChildrenAreLoaded(); return super.postorderEnumeration(); } @Override public Enumeration<?> breadthFirstEnumeration() { ensureChildrenAreLoaded(); return super.breadthFirstEnumeration(); } @Override public Enumeration<?> depthFirstEnumeration() { ensureChildrenAreLoaded(); return super.depthFirstEnumeration(); } @Override public boolean isNodeChild(TreeNode aNode) { ensureChildrenAreLoaded(); return super.isNodeChild(aNode); } @Override public TreeNode getFirstChild() { ensureChildrenAreLoaded(); return super.getFirstChild(); } @Override public TreeNode getLastChild() { ensureChildrenAreLoaded(); return super.getLastChild(); } @Override public TreeNode getChildAfter(TreeNode aChild) { ensureChildrenAreLoaded(); return super.getChildAfter(aChild); } @Override public TreeNode getChildBefore(TreeNode aChild) { ensureChildrenAreLoaded(); return super.getChildBefore(aChild); } @Override public boolean isLeaf() { ensureChildrenAreLoaded(); return super.isLeaf(); } @Override public DefaultMutableTreeNode getFirstLeaf() { ensureChildrenAreLoaded(); return super.getFirstLeaf(); } @Override public DefaultMutableTreeNode getLastLeaf() { ensureChildrenAreLoaded(); return super.getLastLeaf(); } @Override public DefaultMutableTreeNode getNextLeaf() { ensureChildrenAreLoaded(); return super.getNextLeaf(); } @Override public DefaultMutableTreeNode getPreviousLeaf() { ensureChildrenAreLoaded(); return super.getPreviousLeaf(); } @Override public int getLeafCount() { ensureChildrenAreLoaded(); return super.getLeafCount(); } @Override public String toString() { ensureChildrenAreLoaded(); return super.toString(); } @Override public Object clone() { ensureChildrenAreLoaded(); return super.clone(); } @Override public int hashCode() { ensureChildrenAreLoaded(); return super.hashCode(); } @Override public boolean equals(Object obj) { ensureChildrenAreLoaded(); return super.equals(obj); } } |
ReflectionUI
This library allows to generate automatically the GUI (general user interface) of any Java object.
The generation of the GUI requires no other information that the object itself. Its structure is discovered at runtime through Java reflection.
The genrated GUI can be customized in a non-intrusive way by overriding some key methods of the generator objects.
License | Open Source |
HomePage | https://javacollection.net/reflectionui |
Phoyo
Phoyo is a photo booth automation software.
It can be used for:
- social events (parties, weddings, …)
- official documents (ID cards, passports, …)
Related software: Phoyo ID
- https://directory.fsf.org/wiki/Phoyo-id
- https://osdn.net/projects/phoyo-id/
- https://projects.tuxfamily.org/?do=group;name=phoyoid
- http://freshcode.club/projects/phoyo-id
Related discussions
- https://portableapps.com/node/60718
- https://forums.anandtech.com/threads/photo-booth-type-software-for-linux.292036/
License | Freeware |
HomePage | http://www.phoyosystem.com |