!752

p {
  substanceLAF();
  awt {
    JFrame frame = showFrame();
    JComponent titleBar = getTitlePaneComponent(frame);
    for (Component c : getSwingChildren(titleBar))
      print(c);
    titleBar.addMouseListener(new MouseAdapter {
      public void mousePressed(MouseEvent evt) {
        if (evt.getButton() != MouseEvent.BUTTON1)
          print("Right-click! Evt: " + evt);
      }
    });
  }
}