734 @Override 735 public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType exclusionType) { 736 return (exclusionType == null) || 737 (exclusionType == Dialog.ModalExclusionType.NO_EXCLUDE) || 738 (exclusionType == Dialog.ModalExclusionType.APPLICATION_EXCLUDE) || 739 (exclusionType == Dialog.ModalExclusionType.TOOLKIT_EXCLUDE); 740 } 741 742 @Override 743 public boolean isModalityTypeSupported(Dialog.ModalityType modalityType) { 744 //TODO: FileDialog blocks excluded windows... 745 //TODO: Test: 2 file dialogs, separate AppContexts: a) Dialog 1 blocked, shouldn't be. Frame 4 blocked (shouldn't be). 746 return (modalityType == null) || 747 (modalityType == Dialog.ModalityType.MODELESS) || 748 (modalityType == Dialog.ModalityType.DOCUMENT_MODAL) || 749 (modalityType == Dialog.ModalityType.APPLICATION_MODAL) || 750 (modalityType == Dialog.ModalityType.TOOLKIT_MODAL); 751 } 752 753 @Override 754 public boolean isWindowTranslucencySupported() { 755 return true; 756 } 757 758 @Override 759 public boolean isTranslucencyCapable(GraphicsConfiguration gc) { 760 return true; 761 } 762 763 @Override 764 public boolean enableInputMethodsForTextComponent() { 765 return true; 766 } 767 } | 734 @Override 735 public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType exclusionType) { 736 return (exclusionType == null) || 737 (exclusionType == Dialog.ModalExclusionType.NO_EXCLUDE) || 738 (exclusionType == Dialog.ModalExclusionType.APPLICATION_EXCLUDE) || 739 (exclusionType == Dialog.ModalExclusionType.TOOLKIT_EXCLUDE); 740 } 741 742 @Override 743 public boolean isModalityTypeSupported(Dialog.ModalityType modalityType) { 744 //TODO: FileDialog blocks excluded windows... 745 //TODO: Test: 2 file dialogs, separate AppContexts: a) Dialog 1 blocked, shouldn't be. Frame 4 blocked (shouldn't be). 746 return (modalityType == null) || 747 (modalityType == Dialog.ModalityType.MODELESS) || 748 (modalityType == Dialog.ModalityType.DOCUMENT_MODAL) || 749 (modalityType == Dialog.ModalityType.APPLICATION_MODAL) || 750 (modalityType == Dialog.ModalityType.TOOLKIT_MODAL); 751 } 752 753 @Override 754 public boolean isWindowShapingSupported() { 755 return true; 756 } 757 758 @Override 759 public boolean isWindowTranslucencySupported() { 760 return true; 761 } 762 763 @Override 764 public boolean isTranslucencyCapable(GraphicsConfiguration gc) { 765 return true; 766 } 767 768 public boolean isSwingBackbufferTranslucencySupported() { 769 return true; 770 } 771 772 @Override 773 public boolean enableInputMethodsForTextComponent() { 774 return true; 775 } 776 } |