messagebox.h

Go to the documentation of this file.
00001 
00013 #ifndef _MESSAGEBOX_H_
00014 #define _MESSAGEBOX_H_
00015 
00016 #include "../jnilib.h"
00017 #include "../awt/frame.h"
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00024 #define CLS_MESSAGEBOX "javax/swing/JOptionPane"
00025 
00026 #define MSGBOX_OK getStaticIntFieldByName(CLS_MESSAGEBOX, "OK_OPTION")
00027 #define MSGBOX_YES getStaticIntFieldByName(CLS_MESSAGEBOX, "YES_OPTION")
00028 #define MSGBOX_NO getStaticIntFieldByName(CLS_MESSAGEBOX, "NO_OPTION")
00029 #define MSGBOX_CANCEL getStaticIntFieldByName(CLS_MESSAGEBOX, "CANCEL_OPTION")
00030 #define MSGBOX_CLOSED getStaticIntFieldByName(CLS_MESSAGEBOX, "CLOSED_OPTION")
00031 
00032 jint showModalConfirmDialog(Frame* frame, const char* msg);
00033 jint showConfirmDialog(const char* msg);
00034 
00035 char* showModalInputDialog(Frame* frame, const char* msg, const char* defaultValue);
00036 char* showInputDialog(const char* msg, const char* defaultValue);
00037 
00038 void showModalMessageDialog(Frame* frame, const char* msg);
00039 void showMessageDialog(const char* msg);
00040 
00041 #ifdef __cplusplus
00042 } /* extern "C" */
00043 #endif
00044 
00045 #endif /* _MESSAGEBOX_H_ */
00046 
00047 /* end of file messagebox.h */

Generated on Sat Nov 19 14:11:11 2005 for GrubC by  doxygen 1.4.4