--- a/tool/src/GUI/StudioUI4.java
+++ b/tool/src/GUI/StudioUI4.java
@@ -125,6 +125,7 @@
panelWest.setPreferredSize(new java.awt.Dimension(172, 362));
tree.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 2, 5, 5));
+ tree.setAutoscrolls(true);
tree.setLargeModel(true);
tree.setRootVisible(false);
tree.setRowHeight(18);
@@ -226,22 +227,24 @@
panelEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane2)
.addGroup(panelEastLayout.createSequentialGroup()
- .addComponent(button, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(button, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(search)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap())
);
panelEastLayout.setVerticalGroup(
panelEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelEastLayout.createSequentialGroup()
- .addGroup(panelEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(5, 5, 5)
+ .addGroup(panelEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(button, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(search, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)))
+ .addComponent(search, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE))
+ .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 312, Short.MAX_VALUE))
+ .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 440, Short.MAX_VALUE))
);
jSplitPane1.setRightComponent(panelEast);
@@ -250,17 +253,11 @@
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE)
- .addContainerGap())
+ .addComponent(jSplitPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 714, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)
- .addContainerGap())
+ .addComponent(jSplitPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 490, Short.MAX_VALUE)
);
pack();
@@ -347,14 +344,6 @@
// now add all products that we can find
actions.addTreeSPDX(tree);
-
- // set our first product as the default thing when adding
- // more components from the library
-// if(core.products != null)
-// if(core.products.isEmpty() == false){
-// productSelected = core.products.get(0);
-// System.out.println("KH09 - Selecting the first product as default");
-// }
// get the list of RunPlugins going
RunPlugins.listPlugins();
@@ -542,7 +531,7 @@
text.setContentType(contentType);
text.setText(content);
// disable this box if you don't need to see the output on a file
- utils.files.SaveStringToFile(new File("output.html"), content);
+ //utils.files.SaveStringToFile(new File("output.html"), content);
// should the button enabled?
button.setEnabled(true);
@@ -887,70 +876,6 @@
}
-
- // split each of the parameters into something we can process
-// String[] params = data.split("&");
-// System.err.println("SU02 - Processing FORM: " + data);
-// String method = request.BaseFolder + ">>" + e.getURL().getPath() +">>" + e.getURL().getQuery();
-// System.err.println(method);
- // add method name
-// // go through each parameter
-// for (String param : params) {
-// String[] pair = param.split("=");
-// String value = "";
-// String key = "";
-// if (pair.length > 1) {
-// try {
-// key = java.net.URLDecoder.decode(pair[0], "UTF-8");
-// value = java.net.URLDecoder.decode(pair[1], "UTF-8");
-// //value = pair[1];
-// } catch (UnsupportedEncodingException er) {
-// log.write(is.ERROR,
-// "Failed to read form: %1", data);
-// return;
-// }
-// } else if (pair.length == 1) {
-// try {
-// key = java.net.URLDecoder.decode(pair[0], "UTF-8");
-// //value = pair[1];
-// } catch (UnsupportedEncodingException er) {
-// log.write(is.ERROR,
-// "Failed to read form: %1", data);
-// return;
-// }
-// }
-// // add this parameter on our list
-// request.addParameter(key, value);
-// }// for
- // list all parameters that we have
-// for(String[] parameter : request.parameters){
-// System.err.println(parameter[0] +"->"+ parameter[1]);
-// }
-
-// /**
-// * Add related news to the front screen
-// */
-// private void doFrontScreen() {
-//
-// String timeLine = www.twitter.getTimeLine("@triplechecked");
-//
-// // did we got anything from the web?
-// if(timeLine == null){
-// // nothing, just return without further action
-// return;
-// }
-//
-// String result = ""
-// + html.div()
-// + html.h2("Share your open source news "
-// + "@" + html.link("triplechecked", "http://twitter.com/triplechecked")
-// + "")
-// + timeLine
-// + html._div
-// ;
-// this.editorPane(is.contentHTML, false, 0, result);
-// }
-
private void callFrontScreen() {
log.write(is.INFO, Messages.CallFrontScreen);
}