Changeset 519cdb7d8519199623c2a674a75b22da0a20e966

Show
Ignore:
Timestamp:
02/25/07 10:26:25 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1172395585 +0100
git-parent:

[1a69c4d0b531cf8397a603d2805ec0a14c7cb7f5]

git-author:
Christopher Jung <bktheg@web.de> 1172395585 +0100
Message:

Einige Warnungen gefixt sowie Kommentare hinzugefuegt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • clients/jstarmap/net/driftingsouls/ds2/framework/JDialog.java

    re5910b8 r519cdb7  
    3232 */ 
    3333public class JDialog extends JWindow { 
    34         private JImageCache imageCache; 
    35          
    36         private int screenWidth; 
    37         private int screenHeight; 
    38                 
     34        /** 
     35        * Konstruktor 
     36        * @param parent Das Elternfenster 
     37        * @param windowmanager Der Fenstermanager 
     38        */ 
    3939        public JDialog( JWindow parent, IWindowManager windowmanager ) { 
    4040                super( parent, windowmanager ); 
     
    5454        } 
    5555         
     56        @Override 
    5657        public boolean mouseClicked(int x, int y, int button) { 
    5758                return true; 
    5859        } 
    5960         
     61        @Override 
    6062        public boolean mousePressed(int x, int y, int button) { 
    6163                return true; 
    6264        } 
    6365         
     66        @Override 
    6467        public boolean mouseReleased(int x, int y, int button) { 
    6568                return true; 
    6669        } 
    6770         
     71        @Override 
    6872        public boolean mouseDragged(int x, int y, int button) { 
    6973                return true; 
    7074        } 
    7175         
     76        @Override 
    7277        public boolean mouseMoved(int x, int y, int button) { 
    7378                return true; 
    7479        } 
    7580         
     81        @Override 
    7682        public void mouseExited(int x, int y, int button) { 
    7783                return; 
    7884        } 
    7985         
     86        @Override 
    8087        public void paint(Graphics2D g) { 
    8188                super.paint(g); 
     
    126133        } 
    127134         
     135        @Override 
    128136        public Shape getShape() { 
    129137                GeneralPath path = new GeneralPath(); 
  • clients/jstarmap/net/driftingsouls/ds2/framework/JScrollBar.java

    re5910b8 r519cdb7  
    4545        private boolean showButtons; 
    4646         
     47        /** 
     48         * Konstruktor 
     49         * @param parent Das Elternfenster 
     50         * @param windowmanager Der Fenstermanager 
     51         */ 
    4752        public JScrollBar( JWindow parent, IWindowManager windowmanager ) { 
    4853                super( parent, windowmanager ); 
     
    6974        } 
    7075         
     76        @Override 
    7177        public void onResize() { 
    7278                super.onResize(); 
     
    8187        } 
    8288         
     89        @Override 
    8390        public boolean mousePressed( int x, int y, int button ) { 
    8491                boolean result = super.mousePressed( x, y, button ); 
     
    120127        } 
    121128         
     129        @Override 
    122130        public boolean mouseMoved( int x, int y, int button ) { 
    123                 boolean result = super.mouseMoved( x, y, button ); 
     131                /*boolean result = */super.mouseMoved( x, y, button ); 
    124132         
    125133                if( x <= 29 ) { 
     
    179187        } 
    180188         
     189        @Override 
    181190        public boolean mouseReleased( int x, int y, int button ) { 
    182191                boolean result = super.mouseReleased(x,y,button); 
     
    199208        } 
    200209         
     210        @Override 
    201211        public void mouseExited( int x, int y, int button ) { 
    202212                super.mouseExited(x,y,button); 
     
    217227        } 
    218228         
     229        @Override 
    219230        public boolean mouseDragged( int x, int y, int button ) { 
    220231                boolean result = super.mouseReleased(x,y,button); 
     
    244255                                double ch = getClientHeight() - (addOffset*2+20); 
    245256                                 
    246                                 getParent().vScrollClientWindow((int)((double)diff*(vso/ch))); 
     257                                getParent().vScrollClientWindow((int)(diff*(vso/ch))); 
    247258                                 
    248259                                double vsoff = -getParent().getVScrollOffset(); 
     
    263274        } 
    264275         
     276        @Override 
    265277        public void paint( Graphics2D g ) { 
    266278                int addOffset = 0; 
  • clients/jstarmap/net/driftingsouls/ds2/framework/JTextField.java

    re5910b8 r519cdb7  
    2121 
    2222import java.util.LinkedList; 
     23import java.util.Map; 
    2324import java.util.Vector; 
    2425import java.util.HashMap; 
     
    4243 */ 
    4344class aTextPart { 
    44         public static final int TYPE_TEXT     = 1; 
    45         public static final int TYPE_COLOR    = 2; 
    46         public static final int TYPE_BOLD     = 3; 
    47         public static final int TYPE_FONT     = 4; 
    48         public static final int TYPE_ITALIC = 5; 
    49         public static final int TYPE_SIZE = 5; 
     45        static final int TYPE_TEXT    = 1; 
     46        static final int TYPE_COLOR   = 2; 
     47        static final int TYPE_BOLD    = 3; 
     48        static final int TYPE_FONT    = 4; 
     49        static final int TYPE_ITALIC = 5; 
     50        static final int TYPE_SIZE = 5; 
    5051         
    5152        private int type; 
    5253        private Object data; 
    5354         
     55        /** 
     56         * Konstruktor 
     57         * @param type Der Typ 
     58         * @param data Die assoziierten Daten 
     59         */ 
    5460        public aTextPart( int type, Object data ) { 
    5561                this.type = type; 
     
    5763        } 
    5864         
     65        /** 
     66         * Gibt den Typ zurueck 
     67         * @return Der Typ 
     68         */ 
    5969        public int getType() { 
    6070                return type; 
    6171        } 
    6272         
     73        /** 
     74         * Gibt die assoziierten Daten zurueck 
     75         * @return Die Daten 
     76         */ 
    6377        public Object getData() { 
    6478                return data; 
     
    7387 */ 
    7488public class JTextField extends JWindow { 
    75         private static HashMap colorMap; 
     89        private static Map<String,Integer> colorMap; 
    7690         
    7791        static { 
    78                 colorMap = new HashMap(); 
     92                colorMap = new HashMap<String,Integer>(); 
    7993                // VGA-16 Palette 
    80                 colorMap.put( "black",  new Integer(0x000000) ); 
    81                 colorMap.put( "maroon", new Integer(0x800000) ); 
    82                 colorMap.put( "green",  new Integer(0x008000) ); 
    83                 colorMap.put( "olive",  new Integer(0x808000) ); 
    84                 colorMap.put( "navy",   new Integer(0x000080) ); 
    85                 colorMap.put( "purple",         new Integer(0x800080) ); 
    86                 colorMap.put( "teal",   new Integer(0x008080) ); 
    87                 colorMap.put( "silver",         new Integer(0xc0c0c0) ); 
    88                 colorMap.put( "gray",   new Integer(0x808080) ); 
    89                 colorMap.put( "red",            new Integer(0xFF0000) ); 
    90                 colorMap.put( "lime",   new Integer(0x00FF00) ); 
    91                 colorMap.put( "yellow",         new Integer(0xFFFF00) ); 
    92                 colorMap.put( "blue",   new Integer(0x0000FF) ); 
    93                 colorMap.put( "fuchsia",        new Integer(0xFF00FF) ); 
    94                 colorMap.put( "aqua",           new Integer(0x00FFFF) ); 
    95                 colorMap.put( "white",  new Integer(0xFFFFFF) ); 
     94                colorMap.put( "black",  0x000000 ); 
     95                colorMap.put( "maroon", 0x800000 ); 
     96                colorMap.put( "green",  0x008000 ); 
     97                colorMap.put( "olive",  0x808000 ); 
     98                colorMap.put( "navy",   0x000080 ); 
     99                colorMap.put( "purple",         0x800080 ); 
     100                colorMap.put( "teal",   0x008080 ); 
     101                colorMap.put( "silver",         0xc0c0c0 ); 
     102                colorMap.put( "gray",   0x808080 ); 
     103                colorMap.put( "red",            0xFF0000 ); 
     104                colorMap.put( "lime",   0x00FF00 ); 
     105                colorMap.put( "yellow",         0xFFFF00 ); 
     106                colorMap.put( "blue",   0x0000FF ); 
     107                colorMap.put( "fuchsia",        0xFF00FF ); 
     108                colorMap.put( "aqua",           0x00FFFF ); 
     109                colorMap.put( "white",  0xFFFFFF ); 
    96110                 
    97111                // Netscape 120 
    98                 colorMap.put( "aliceblue",      new Integer(0xF0F8FF) ); 
    99                 colorMap.put( "antiquewhite",   new Integer(0xFAEBD7) ); 
    100                 colorMap.put( "aquamarine",     new Integer(0x7FFFD4) ); 
    101                 colorMap.put( "azure",          new Integer(0xF0FFFF) ); 
    102                 colorMap.put( "beige",          new Integer(0xF5F5DC) ); 
    103                 colorMap.put( "blueviolet",     new Integer(0x8A2BE2) ); 
    104                 colorMap.put( "brown",          new Integer(0xA52A2A) ); 
    105                 colorMap.put( "burlywood",      new Integer(0xDEB887) ); 
    106                 colorMap.put( "cadetblue",      new Integer(0x5F9EA0) ); 
    107                 colorMap.put( "chartreuse",     new Integer(0x7FFF00) ); 
    108                 colorMap.put( "chocolate",      new Integer(0xD2691E) ); 
    109                 colorMap.put( "coral",          new Integer(0xFF7F50) ); 
    110                 colorMap.put( "cornflowerblue", new Integer(0x6495ED) ); 
    111                 colorMap.put( "cornsilk",               new Integer(0xFFF8DC) ); 
    112                 colorMap.put( "crimson",                new Integer(0xDC143C) ); 
    113                 colorMap.put( "darkblue",               new Integer(0x00008B) ); 
    114                 colorMap.put( "darkcyan",               new Integer(0x008B8B) ); 
    115                 colorMap.put( "darkgoldenrod",new Integer(0xB8860B) ); 
    116                 colorMap.put( "darkgray",               new Integer(0xA9A9A9) ); 
    117                 colorMap.put( "darkgreen",      new Integer(0x006400) ); 
    118                 colorMap.put( "darkkhaki",      new Integer(0xBDB76B) ); 
    119                 colorMap.put( "darkmagenta",    new Integer(0x8B008B) ); 
    120                 colorMap.put( "darkolivegreen", new Integer(0x556B2F) ); 
    121                 colorMap.put( "darkorange",     new Integer(0xFF8C00) ); 
    122                 colorMap.put( "darkorchid",     new Integer(0x9932CC) ); 
    123                 colorMap.put( "darkred",                new Integer(0x8B0000) ); 
    124                 colorMap.put( "darksalmon",     new Integer(0xE9967A) ); 
    125                 colorMap.put( "darkseagreen",   new Integer(0x8FBC8F) ); 
    126                 colorMap.put( "darkslateblue",new Integer(0x483D8B) ); 
    127                 colorMap.put( "darkslategray",new Integer(0x2F4F4F) ); 
    128                 colorMap.put( "darkturquoise",new Integer(0x00CED1) ); 
    129                 colorMap.put( "darkviolet",     new Integer(0x9400D3) ); 
    130                 colorMap.put( "deeppink",               new Integer(0xFF1493) ); 
    131                 colorMap.put( "deepskyblue",    new Integer(0x00BFFF) ); 
    132                 colorMap.put( "dimgray",                new Integer(0x696969) ); 
    133                 colorMap.put( "dodgerblue",     new Integer(0x1E90FF) ); 
    134                 colorMap.put( "firebrick",      new Integer(0xB22222) ); 
    135                 colorMap.put( "floralwhite",    new Integer(0xFFFAF0) ); 
    136                 colorMap.put( "forestgreen",    new Integer(0x228B22) ); 
    137                 colorMap.put( "gainsboro",      new Integer(0xDCDCDC) ); 
    138                 colorMap.put( "ghostwhite",     new Integer(0xF8F8FF) ); 
    139                 colorMap.put( "gold",                   new Integer(0xFFD700) ); 
    140                 colorMap.put( "goldenrod",      new Integer(0xDAA520) ); 
    141                 colorMap.put( "greenyellow",    new Integer(0xADFF2F) ); 
    142                 colorMap.put( "honeydew",               new Integer(0xF0FFF0) ); 
    143                 colorMap.put( "hotpink",                new Integer(0xFF69B4) ); 
    144                 colorMap.put( "indianred",      new Integer(0xCD5C5C) ); 
    145                 colorMap.put( "indigo",         new Integer(0x4B0082) ); 
    146                 colorMap.put( "ivory",          new Integer(0xFFFFF0) ); 
    147                 colorMap.put( "khaki",          new Integer(0xF0E68C) ); 
    148                 colorMap.put( "lavender",               new Integer(0xE6E6FA) ); 
    149                 colorMap.put( "lavenderblush",new Integer(0xFFF0F5) ); 
    150                 colorMap.put( "lawngreen",      new Integer(0x7CFC00) ); 
    151                 colorMap.put( "lemonchiffon",   new Integer(0xFFFACD) ); 
    152                 colorMap.put( "lightblue",      new Integer(0xADD8E6) ); 
    153                 colorMap.put( "lightcoral",     new Integer(0xF08080) ); 
    154                 colorMap.put( "lightcyan",      new Integer(0xE0FFFF) ); 
    155                 colorMap.put( "lightgoldenrodyellow",   new Integer(0xFAFAD2) ); 
    156                 colorMap.put( "lightgreen",     new Integer(0x90EE90) ); 
    157                 colorMap.put( "lightgrey",      new Integer(0xD3D3D3) ); 
    158                 colorMap.put( "lightpink",      new Integer(0xFFB6C1) ); 
    159                 colorMap.put( "lightsalmon",    new Integer(0xFFA07A) ); 
    160                 colorMap.put( "lightseagreen",new Integer(0x20B2AA) ); 
    161                 colorMap.put( "lightskyblue",   new Integer(0x87CEFA) ); 
    162                 colorMap.put( "lightslategray", new Integer(0x778899) ); 
    163                 colorMap.put( "lightsteelblue", new Integer(0xB0C4DE) ); 
    164                 colorMap.put( "lightyellow",    new Integer(0xFFFFE0) ); 
    165                 colorMap.put( "limegreen",      new Integer(0x32CD32) ); 
    166                 colorMap.put( "linen",          new Integer(0xFAF0E6) ); 
    167                 colorMap.put( "mediumaquamarine",       new Integer(0x66CDAA) ); 
    168                 colorMap.put( "mediumblue",     new Integer(0x0000CD) ); 
    169                 colorMap.put( "mediumorchid",   new Integer(0xBA55D3) ); 
    170                 colorMap.put( "mediumpurple",   new Integer(0x9370DB) ); 
    171                 colorMap.put( "mediumseagreen", new Integer(0x3CB371) ); 
    172                 colorMap.put( "mediumslateblue",        new Integer(0x7B68EE) ); 
    173                 colorMap.put( "mediumspringgreen",new Integer(0x00FA9A) ); 
    174                 colorMap.put( "mediumturquoise",        new Integer(0x48D1CC) ); 
    175                 colorMap.put( "mediumvioletred",        new Integer(0xC71585) ); 
    176                 colorMap.put( "midnightblue",   new Integer(0x191970) ); 
    177                 colorMap.put( "mintcream",      new Integer(0xF5FFFA) ); 
    178                 colorMap.put( "mistyrose",      new Integer(0xFFE4E1) ); 
    179                 colorMap.put( "moccasin",               new Integer(0xFFE4B5) ); 
    180                 colorMap.put( "navajowhite",    new Integer(0xFFDEAD) ); 
    181                 colorMap.put( "oldlace",                new Integer(0xFDF5E6) ); 
    182                 colorMap.put( "olivedrab",      new Integer(0x6B8E23) ); 
    183                 colorMap.put( "orange",         new Integer(0xFFA500) ); 
    184                 colorMap.put( "orangered",      new Integer(0xFF4500) ); 
    185                 colorMap.put( "orchid",         new Integer(0xDA70D6) ); 
    186                 colorMap.put( "palegoldenrod",new Integer(0xEEE8AA) ); 
    187                 colorMap.put( "palegreen",      new Integer(0x98FB98) ); 
    188                 colorMap.put( "paleturquoise",new Integer(0xAFEEEE) ); 
    189                 colorMap.put( "palevioletred",new Integer(0xDB7093) ); 
    190                 colorMap.put( "papayawhip",     new Integer(0xFFEFD5) ); 
    191                 colorMap.put( "peachpuff",      new Integer(0xFFDAB9) ); 
    192                 colorMap.put( "peru",                   new Integer(0xCD853F) ); 
    193                 colorMap.put( "pink",                   new Integer(0xFFC0CB) ); 
    194                 colorMap.put( "plum",                   new Integer(0xDDA0DD) ); 
    195                 colorMap.put( "powderblue",     new Integer(0xB0E0E6) ); 
    196                 colorMap.put( "rosybrown",      new Integer(0xBC8F8F) ); 
    197                 colorMap.put( "royalblue",      new Integer(0x4169E1) ); 
    198                 colorMap.put( "saddlebrown",    new Integer(0x8B4513) ); 
    199                 colorMap.put( "salmon",         new Integer(0xFA8072) ); 
    200                 colorMap.put( "sandybrown",     new Integer(0xF4A460) ); 
    201                 colorMap.put( "seagreen",               new Integer(0x2E8B57) ); 
    202                 colorMap.put( "seashell",               new Integer(0xFFF5EE) ); 
    203                 colorMap.put( "sienna",         new Integer(0xA0522D) ); 
    204                 colorMap.put( "skyblue",                new Integer(0x87CEEB) ); 
    205                 colorMap.put( "slateblue",      new Integer(0x6A5ACD) ); 
    206                 colorMap.put( "slategray",      new Integer(0x708090) ); 
    207                 colorMap.put( "snow",                   new Integer(0xFFFAFA) ); 
    208                 colorMap.put( "springgreen",    new Integer(0x00FF7F) ); 
    209                 colorMap.put( "steelblue",      new Integer(0x4682B4) ); 
    210                 colorMap.put( "tan",                    new Integer(0xD2B48C) ); 
    211                 colorMap.put( "thistle",                new Integer(0xD8BFD8) ); 
    212                 colorMap.put( "tomato",         new Integer(0xFF6347) ); 
    213                 colorMap.put( "turquoise",      new Integer(0x40E0D0) ); 
    214                 colorMap.put( "violet",         new Integer(0xEE82EE) ); 
    215                 colorMap.put( "wheat",          new Integer(0xF5DEB3) ); 
    216                 colorMap.put( "whitesmoke",     new Integer(0xF5F5F5) ); 
    217                 colorMap.put( "yellowgreen",    new Integer(0x9ACD32) ); 
     112                colorMap.put( "aliceblue",      0xF0F8FF ); 
     113                colorMap.put( "antiquewhite",   0xFAEBD7 ); 
     114                colorMap.put( "aquamarine",     0x7FFFD4 ); 
     115                colorMap.put( "azure",          0xF0FFFF ); 
     116                colorMap.put( "beige",          0xF5F5DC ); 
     117                colorMap.put( "blueviolet",     0x8A2BE2 ); 
     118                colorMap.put( "brown",          0xA52A2A ); 
     119                colorMap.put( "burlywood",      0xDEB887 ); 
     120                colorMap.put( "cadetblue",      0x5F9EA0 ); 
     121                colorMap.put( "chartreuse",     0x7FFF00 ); 
     122                colorMap.put( "chocolate",      0xD2691E ); 
     123                colorMap.put( "coral",          0xFF7F50 ); 
     124                colorMap.put( "cornflowerblue", 0x6495ED ); 
     125                colorMap.put( "cornsilk",               0xFFF8DC ); 
     126                colorMap.put( "crimson",                0xDC143C ); 
     127                colorMap.put( "darkblue",               0x00008B ); 
     128                colorMap.put( "darkcyan",               0x008B8B ); 
     129                colorMap.put( "darkgoldenrod",0xB8860B ); 
     130                colorMap.put( "darkgray",               0xA9A9A9 ); 
     131                colorMap.put( "darkgreen",      0x006400 ); 
     132                colorMap.put( "darkkhaki",      0xBDB76B ); 
     133                colorMap.put( "darkmagenta",    0x8B008B ); 
     134                colorMap.put( "darkolivegreen", 0x556B2F ); 
     135                colorMap.put( "darkorange",     0xFF8C00 ); 
     136                colorMap.put( "darkorchid",     0x9932CC ); 
     137                colorMap.put( "darkred",                0x8B0000 ); 
     138                colorMap.put( "darksalmon",     0xE9967A ); 
     139                colorMap.put( "darkseagreen",   0x8FBC8F ); 
     140                colorMap.put( "darkslateblue",0x483D8B ); 
     141                colorMap.put( "darkslategray",0x2F4F4F ); 
     142                colorMap.put( "darkturquoise",0x00CED1 ); 
     143                colorMap.put( "darkviolet",     0x9400D3 ); 
     144                colorMap.put( "deeppink",               0xFF1493 ); 
     145                colorMap.put( "deepskyblue",    0x00BFFF ); 
     146                colorMap.put( "dimgray",                0x696969 ); 
     147                colorMap.put( "dodgerblue",     0x1E90FF ); 
     148                colorMap.put( "firebrick",      0xB22222 ); 
     149                colorMap.put( "floralwhite",    0xFFFAF0 ); 
     150                colorMap.put( "forestgreen",    0x228B22 ); 
     151                colorMap.put( "gainsboro",      0xDCDCDC ); 
     152                colorMap.put( "ghostwhite",     0xF8F8FF ); 
     153                colorMap.put( "gold",                   0xFFD700 ); 
     154                colorMap.put( "goldenrod",      0xDAA520 ); 
     155                colorMap.put( "greenyellow",    0xADFF2F ); 
     156                colorMap.put( "honeydew",               0xF0FFF0 ); 
     157                colorMap.put( "hotpink",                0xFF69B4 ); 
     158                colorMap.put( "indianred",      0xCD5C5C ); 
     159                colorMap.put( "indigo",         0x4B0082 ); 
     160                colorMap.put( "ivory",          0xFFFFF0 ); 
     161                colorMap.put( "khaki",          0xF0E68C ); 
     162                colorMap.put( "lavender",               0xE6E6FA ); 
     163                colorMap.put( "lavenderblush",0xFFF0F5 ); 
     164                colorMap.put( "lawngreen",      0x7CFC00 ); 
     165                colorMap.put( "lemonchiffon",   0xFFFACD ); 
     166                colorMap.put( "lightblue",      0xADD8E6 ); 
     167                colorMap.put( "lightcoral",     0xF08080 ); 
     168                colorMap.put( "lightcyan",      0xE0FFFF ); 
     169                colorMap.put( "lightgoldenrodyellow",   0xFAFAD2 ); 
     170                colorMap.put( "lightgreen",     0x90EE90 ); 
     171                colorMap.put( "lightgrey",      0xD3D3D3 ); 
     172                colorMap.put( "lightpink",      0xFFB6C1 ); 
     173                colorMap.put( "lightsalmon",    0xFFA07A ); 
     174                colorMap.put( "lightseagreen",0x20B2AA ); 
     175                colorMap.put( "lightskyblue",   0x87CEFA ); 
     176                colorMap.put( "lightslategray", 0x778899 ); 
     177                colorMap.put( "lightsteelblue", 0xB0C4DE ); 
     178                colorMap.put( "lightyellow",    0xFFFFE0 ); 
     179                colorMap.put( "limegreen",      0x32CD32 ); 
     180                colorMap.put( "linen",          0xFAF0E6 ); 
     181                colorMap.put( "mediumaquamarine",       0x66CDAA ); 
     182                colorMap.put( "mediumblue",     0x0000CD ); 
     183                colorMap.put( "mediumorchid",   0xBA55D3 ); 
     184                colorMap.put( "mediumpurple",   0x9370DB ); 
     185                colorMap.put( "mediumseagreen", 0x3CB371 ); 
     186                colorMap.put( "mediumslateblue",        0x7B68EE ); 
     187                colorMap.put( "mediumspringgreen",0x00FA9A ); 
     188                colorMap.put( "mediumturquoise",        0x48D1CC ); 
     189                colorMap.put( "mediumvioletred",        0xC71585 ); 
     190                colorMap.put( "midnightblue",   0x191970 ); 
     191                colorMap.put( "mintcream",      0xF5FFFA ); 
     192                colorMap.put( "mistyrose",      0xFFE4E1 ); 
     193                colorMap.put( "moccasin",               0xFFE4B5 ); 
     194                colorMap.put( "navajowhite",    0xFFDEAD ); 
     195                colorMap.put( "oldlace",                0xFDF5E6 ); 
     196                colorMap.put( "olivedrab",      0x6B8E23 ); 
     197                colorMap.put( "orange",         0xFFA500 ); 
     198                colorMap.put( "orangered",      0xFF4500 ); 
     199                colorMap.put( "orchid",         0xDA70D6 ); 
     200                colorMap.put( "palegoldenrod",0xEEE8AA ); 
     201                colorMap.put( "palegreen",      0x98FB98 ); 
     202                colorMap.put( "paleturquoise",0xAFEEEE ); 
     203                colorMap.put( "palevioletred",0xDB7093 ); 
     204                colorMap.put( "papayawhip",     0xFFEFD5 ); 
     205                colorMap.put( "peachpuff",      0xFFDAB9 ); 
     206                colorMap.put( "peru",                   0xCD853F ); 
     207                colorMap.put( "pink",                   0xFFC0CB ); 
     208                colorMap.put( "plum",                   0xDDA0DD ); 
     209                colorMap.put( "powderblue",     0xB0E0E6 ); 
     210                colorMap.put( "rosybrown",      0xBC8F8F ); 
     211                colorMap.put( "royalblue",      0x4169E1 ); 
     212                colorMap.put( "saddlebrown",    0x8B4513 ); 
     213                colorMap.put( "salmon",         0xFA8072 ); 
     214                colorMap.put( "sandybrown",     0xF4A460 ); 
     215                colorMap.put( "seagreen",               0x2E8B57 ); 
     216                colorMap.put( "seashell",               0xFFF5EE ); 
     217                colorMap.put( "sienna",         0xA0522D ); 
     218                colorMap.put( "skyblue",                0x87CEEB ); 
     219                colorMap.put( "slateblue",      0x6A5ACD ); 
     220                colorMap.put( "slategray",      0x708090 ); 
     221                colorMap.put( "snow",                   0xFFFAFA ); 
     222                colorMap.put( "springgreen",    0x00FF7F ); 
     223                colorMap.put( "steelblue",      0x4682B4 ); 
     224                colorMap.put( "tan",                    0xD2B48C ); 
     225                colorMap.put( "thistle",                0xD8BFD8 ); 
     226                colorMap.put( "tomato",         0xFF6347 ); 
     227                colorMap.put( "turquoise",      0x40E0D0 ); 
     228                colorMap.put( "violet",         0xEE82EE ); 
     229                colorMap.put( "wheat",          0xF5DEB3 ); 
     230                colorMap.put( "whitesmoke",     0xF5F5F5 ); 
     231                colorMap.put( "yellowgreen",    0x9ACD32 ); 
    218232                 
    219233                // Weitere (weil einige sich immer vertippen) 
    220                 colorMap.put( "grey",   new Integer(0x808080) ); 
     234                colorMap.put( "grey",   0x808080 ); 
    221235        } 
    222236         
    223         private LinkedList lineList; 
    224         private Vector textHeights; 
     237        private LinkedList<Vector<aTextPart>> lineList; 
     238        private Vector<Integer> textHeights; 
    225239        private BufferedImage textImage; 
    226240         
     
    228242         
    229243        private String dialogText; 
    230         private int wantedHeight; 
     244        //private int wantedHeight; 
    231245        private int oldWidth; 
    232246         
     
    244258                textImage = null; 
    245259                dialogText = " "; 
    246                 textHeights = new Vector(); 
    247                 wantedHeight = getClientHeight(); 
     260                textHeights = new Vector<Integer>(); 
     261                //wantedHeight = getClientHeight(); 
    248262                 
    249263                fontName = myfont; 
     
    260274                // Text berechnen 
    261275         
    262                 lineList = new LinkedList(); 
    263                  
    264                 Stack colors = new Stack(); 
    265                 colors.push(new Integer(0xc7c7c7)); 
    266                  
    267                 Stack fonts = new Stack(); 
     276                lineList = new LinkedList<Vector<aTextPart>>(); 
     277                 
     278                Stack<Integer> colors = new Stack<Integer>(); 
     279                colors.push(0xc7c7c7); 
     280                 
     281                Stack<Font> fonts = new Stack<Font>(); 
    268282                fonts.push( g.getFont() ); 
    269283                 
    270                 textHeights = new Vector(); 
     284                textHeights = new Vector<Integer>(); 
    271285                 
    272286                dialogText = dialogText.replaceAll("&auml;","À"); 
     
    293307                for( int i=0; i < lineList.length; i++ ) { 
    294308                        String currentline = lineList[i];*/ 
    295                         Vector textvector = new Vector(); 
     309                        Vector<aTextPart> textvector = new Vector<aTextPart>(); 
    296310                        StringBuffer tmpText = new StringBuffer(); 
    297311                        int lineLength = 0; 
     
    315329                                                        currentHeight = g.getFontMetrics().getHeight()+2; 
    316330 
    317                                                         textvector = new Vector(); 
     331                                                        textvector = new Vector<aTextPart>(); 
    318332                                                        lineLength = 0; 
    319333                                                        tmpText = new StringBuffer(word); 
     
    345359                                                        currentHeight = g.getFontMetrics().getHeight()+2; 
    346360                                                         
    347                                                         textvector = new Vector(); 
     361                                                        textvector = new Vector<aTextPart>(); 
    348362                                                        lineLength = 0; 
    349363                                                        tmpText = new StringBuffer(word); 
     
    451465                                                } 
    452466                                                else if( colorMap.get(colorcode.toLowerCase()) != null ) { 
    453                                                         colorvalue = (Integer)colorMap.get(colorcode.toLowerCase()); 
     467                                                        colorvalue = colorMap.get(colorcode.toLowerCase()); 
    454468                                                } 
    455469                                                else { 
     
    473487                                                        colors.pop(); //Tag "schliessen" 
    474488                                                         
    475                                                         Integer colorvalue = (Integer)colors.peek(); 
     489                                                        Integer colorvalue = colors.peek(); 
    476490                                                         
    477491                                                        textvector.add(new aTextPart(aTextPart.TYPE_COLOR,colorvalue)); 
     
    503517                                                        fonts.pop(); //Tag "schliessen" 
    504518                                                         
    505                                                         Font oldFont = (Font)fonts.peek(); 
     519                                                        Font oldFont = fonts.peek(); 
    506520                                                         
    507521                                                        g.setFont(oldFont); 
     
    546560                                                        fonts.pop(); //Tag "schliessen" 
    547561                                                         
    548                                                         Font oldFont = (Font)fonts.peek(); 
     562                                                        Font oldFont = fonts.peek(); 
    549563                                                         
    550564                                                        g.setFont(oldFont); 
     
    582596                                                        fonts.pop(); //Tag "schliessen" 
    583597                                                         
    584                                                         Font oldFont = (Font)fonts.peek(); 
     598                                                        Font oldFont = fonts.peek(); 
    585599                                                         
    586600                                                        g.setFont(oldFont); 
     
    637651                                                        fonts.pop(); //Tag "schliessen" 
    638652                                                         
    639                                                         Font oldFont = (Font)fonts.peek(); 
     653                                                        Font oldFont = fonts.peek(); 
    640654                                                         
    641655                                                        g.setFont(oldFont); 
     
    670684                                                                        currentHeight = g.getFontMetrics().getHeight()+2; 
    671685 
    672                                                                         textvector = new Vector(); 
     686                                                                        textvector = new Vector<aTextPart>(); 
    673687                                                                        lineLength = 0; 
    674688                                                                        tmpText = new StringBuffer(word); 
     
    702716                                        currentHeight = g.getFontMetrics().getHeight()+2; 
    703717 
    704                                         textvector = new Vector(); 
     718                                        textvector = new Vector<aTextPart>(); 
    705719                                        lineLength = 0; 
    706720                                        tmpText = new StringBuffer(word); 
     
    718732                         
    719733                        this.lineList.add(textvector); 
    720                         textvector = new Vector(); 
     734                        textvector = new Vector<aTextPart>(); 
    721735                                 
    722736                        textHeights.add( new Integer(currentHeight) ); 
     
    756770                int height = -2; 
    757771                for( int i = 0; i < textHeights.size(); i++ ) { 
    758                         height += ((Integer)textHeights.get(i)).intValue(); 
     772                        height += textHeights.get(i); 
    759773                } 
    760774                 
     
    765779                if( height != getClientHeight() ) { 
    766780                        needresize = true; 
    767                         wantedHeight = height; 
     781                        //wantedHeight = height; 
    768782                } 
    769783                 
     
    792806                int xPosition = 0; 
    793807                aTextPart txtpart = null; 
    794                 Vector linevector = null; 
     808                Vector<aTextPart> linevector = null; 
    795809                 
    796810                for( int i=0; i < lineList.size(); i++ ) { 
    797811                        xPosition = 0; 
    798                         yPosition += ((Integer)textHeights.get(i)).intValue(); 
    799                          
    800                         linevector = (Vector)lineList.get(i); 
     812                        yPosition += textHeights.get(i); 
     813                         
     814                        linevector = lineList.get(i); 
    801815                         
    802816                        for( int j = 0; j < linevector.size(); j++ ) { 
    803                                 txtpart = (aTextPart)linevector.get(j); 
     817                                txtpart = linevector.get(j); 
    804818                                 
    805819                                if( txtpart.getType() == aTextPart.TYPE_TEXT ) { 
     
    835849        } 
    836850         
     851        @Override 
    837852        public void onResize() { 
    838853                if( (dialogText != "") && (getClientWidth() != oldWidth) ) { 
     
    845860        } 
    846861         
     862        @Override 
    847863        public void paint(Graphics2D g) {                                
    848864                super.paint(g);