ok then , thanks
I will try to make it happen
Another question … something which I have done not only in problems like these.
Here I readthe map in a class called TileMapMaker :
public char[][] read()
{
try
{
String line ;
while((line = in.readLine()) != null)
{
String s = in.readLine();
for(int i =0;i<127;i++)
{
if(s.charAt(i) == 'G')
TileMap[lines][i] = 'G';
if(s.charAt(i) == 'B')
TileMap[lines][i] = 'B';
if(s.charAt(i) == '#')
TileMap[lines][i] = '#';
}
lines +=1;
}
}
then in my main class in the paintWorld method I read the array: (of course before that I had done map1Array = map1.read(); )
for(int i=0 ;i<44;i++)
for(int j = 0;j<127;j++)
{
if(map1Array[i][j] == 'B')
g.drawImage(B , j*16 ,i*16,this );
if(map1Array[i][j] == 'G')
g.drawImage(G , j*16 ,i*16,this );
}
I get errors though …
java.lang.NullPointerException
at Version01.TileMapMaker.read(TileMapMaker.java:43)
at Version01.Legend.initWorld(Legend.java:68)
at Version01.Legend.gameLoop(Legend.java:87)
at Version01.Legend.main(Legend.java:163)
and it draw the testmap like I designed it in the .txt but … it does not cover the whole screen … even though the resolution is 1024x768
and i max and j max * 16 should cover the whole map it only covers half of the vertical screen.Horizontal it covers it all.Sorry If I did not explain accurately , english is not my 1st language 
Any more explanations feel free to ask.