1 14 package org.compiere.swing; 15 16 import javax.swing.*; 17 import java.awt.*; 18 import java.awt.event.*; 19 20 import org.compiere.plaf.*; 21 22 30 public class CDialog extends JDialog 31 implements ActionListener, MouseListener 32 { 33 34 public CDialog() throws HeadlessException 35 { 36 this((Frame)null, false); 37 } 38 39 public CDialog(Frame owner) throws HeadlessException 40 { 41 this (owner, false); 42 } 43 44 public CDialog(Frame owner, boolean modal) throws HeadlessException 45 { 46 this (owner, null, modal); 47 } 48 49 public CDialog(Frame owner, String title) throws HeadlessException 50 { 51 this (owner, title, false); 52 } 53 54 public CDialog(Frame owner, String title, boolean modal) 55 throws HeadlessException 56 { 57 super(owner, title, modal); 58 init(); 59 } 60 61 public CDialog(Frame owner, String title, boolean modal, 62 GraphicsConfiguration gc) 63 { 64 super(owner, title, modal, gc); 65 init(); 66 } 67 68 public CDialog(Dialog owner) throws HeadlessException 69 { 70 this (owner, false); 71 } 72 73 public CDialog(Dialog owner, boolean modal) throws HeadlessException 74 { 75 this(owner, null, modal); 76 } 77 78 public CDialog(Dialog owner, String title) throws HeadlessException 79 { 80 this(owner, title, false); 81 } 82 83 public CDialog(Dialog owner, String title, boolean modal) 84 throws HeadlessException 85 { 86 super(owner, title, modal); 87 init(); 88 } 89 public CDialog(Dialog owner, String title, boolean modal, 90 GraphicsConfiguration gc) throws HeadlessException { 91 92 super(owner, title, modal, gc); 93 init(); 94 } 95 96 99 private void init() 100 { 101 CompiereColor.setBackground(this); 102 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); 103 } 105 106 107 111 public void actionPerformed(ActionEvent e) 112 { 113 } 114 115 119 public void mouseClicked(MouseEvent e) 120 { 121 } 122 123 127 public void mouseEntered(MouseEvent e) 128 { 129 } 130 131 135 public void mouseExited(MouseEvent e) 136 { 137 } 138 139 143 public void mousePressed(MouseEvent e) 144 { 145 } 146 147 151 public void mouseReleased(MouseEvent e) 152 { 153 } 154 155 156 157 } | Popular Tags |