Code:
FontMetrics m=new JLabel().getFontMetrics(new Font("Calibri", Font.PLAIN, 24));
Dimension d=new Dimension(m.stringWidth("AjWtYJ"),m.getHeight()+4);
Code:
tree.setRowHeight(d.height);
FontMetrics m=new JLabel().getFontMetrics(new Font("Calibri", Font.PLAIN, 24));
Dimension d=new Dimension(m.stringWidth("AjWtYJ"),m.getHeight()+4);
tree.setRowHeight(d.height);
Declare Function PtInRegion Lib "gdi32" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long
class ButtonHandler implements ActionListener{
public void actionPerformed (ActionEvent e){
....
Thread op=new Thread(){
public void run(){ Global.updateProcess();
}
public static void updateProcess(){
...
//code
....
ProgressMonitor progressMon=new ProgressMonitor(null, "Operation in progress...", "", 0, 3600);
Leave a comment: