001package myproject.ui; 002 003public class UIFactory { 004 private UIFactory() {} 005 static private UI UI = new PopupUI(); 006 //static private UI UI = new TextUI(); 007 static public UI ui () { 008 return UI; 009 } 010}