BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Incorrect source shown HELP !

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Stan Dominski
Guest





PostPosted: Tue Jun 28, 2005 3:34 pm    Post subject: Incorrect source shown HELP ! Reply with quote




In doing a simple applet I have an error message that says:

"DrawGrid.java": Package C:Documents and SettingsGateway
Userjbprojectstan_draw_gridteststan_draw_gridDrawGrid.java

stated in source unnamed package does not match directory

C:Documents and SettingsGateway Userjbprojectstan_draw_gridteststan_draw_gridDrawGrid.java.

This is rather strange because when I select the name
and directory of the new applet:

File
New Project

the path I give is C:2_jbprojectJP

so how does it get
C:Settings and DocumentsGateway Userjbproject

(Old directories that I don't use anymore ! )
How do I change the source to have the correct path ?

Thank you
Stan
------------------------------------
import java.applet.*;
import objectdraw.*;


public class DrawGrid extends WindowController
{
private Location verticalCorner;
private Location horizontalCorner;

public void begin()
{
horizontalCorner = new Location(0,0);
verticalCorner = new Location(0,0);
}

// FilledRect(Location origin,double width,double height,DrawingCancas c)

//Parameters:
//origin - the upper left corner of the bounding rectangle
//width - the width of the bounding rectangle
//height - the height of the bounding rectangle
// the canvas in which the image is created


public void onMouseClick(Location p)
{

new FilledRect(verticalCorner, 5,canvas.getHeight(),canvas);
new FilledRect(horizontalCorner, canvas.getHeight(),5,canvas);

// translate(double dx, double dy)
// Translate the point by the given increments.
//Parameters:
//dx - amount to move in x direction
//dy - amount to move in y direction

verticalCorner.translate(10,0);
horizontalCorner.translate(0,10);
}
}



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.