Index

Java Swing

updating a component in already visible Container:
frame.getContentPane().validate();
frame.getContentPane().repaint();
getting the active window (or null if application is not selected)
Window active = FocusManager.getCurrentManager().getActiveWindow();

components

JTable

adding a mouse double click listener
mytable.addMouseListener(new MouseAdapter() {
    public void mousePressed(MouseEvent event) {
        JTable table = (JTable) event.getSource();
        int row = table.rowAtPoint(event.getPoint());
        if (event.getClickCount() == 2 && table.getSelectedRow() != -1) {
            // todo: code goes here
        }
    }
});