Apple have released Java for OS X Lion 2012-005 (along with the corresponding Java for Mac OS X 10.6 Update 10).
This update includes security fixes to align it with Oracle’s Java SE 6 Update 35.
The update will come through the software updater or can be downloaded from the Apple downloads page.
Friday, September 7, 2012
DrJava: a lightweight development environment for writing Java programs

DrJava is a lightweight development environment for writing Java programs. It is designed primarily for students, providing an intuitive interface and the ability to interactively evaluate Java code. It also includes powerful features for more advanced users. DrJava is available for free under the BSD License, and it is under active development by the JavaPLT group at Rice University.
Website: http://drjava.sourceforge.net/
Basic JSplitPane
JSplitPane is used to divide two (and only two) Components. The two Components are graphically divided based on the look and feel implementation, and the two Components can then be interactively resized by the user.
Next:
- Nested JSplitPane
package javatestsplitpane;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.SwingUtilities;
/**
*
* @web http://java-buddy.blogspot.com/
*/
public class JavaSplitPane {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(runJSplitPaneLater);
}
static Runnable runJSplitPaneLater = new Runnable(){
@Override
public void run() {
MyJFrameWin myJFrameWin = new MyJFrameWin();
myJFrameWin.setVisible(true);
}
};
public static class MyJFrameWin extends JFrame{
JSplitPane jSplitPane;
JPanel jPanel1, jPanel2;
public MyJFrameWin(){
this.setTitle("java-buddy.blogspot.com");
this.setSize(400, 300);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jPanel1 = new JPanel();
jPanel2 = new JPanel();
jSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
jPanel1, jPanel2);
jSplitPane.setOneTouchExpandable(true);
jSplitPane.setDividerLocation(150);
getContentPane().add(jSplitPane);
}
}
}
Next:
- Nested JSplitPane
Subscribe to:
Posts (Atom)
