Go to Post Now if MTV had an episode of "Made" where the school's top jock wanted to drive a FIRST's teams robot to victory...now that would be a good one. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-09-2010, 20:49
nealpatel nealpatel is offline
Registered User
FRC #1777
 
Join Date: Jan 2010
Location: Lenexa, KS
Posts: 8
nealpatel is an unknown quantity at this point
Access Classes from different file

Does anyone know how to access java classes from a different file? We have always used only one file for all code but now it's so big so I was wondering if there is any way (I'm sure there is some way but idk) to do that.

Like for "User Messages", we made a class "writeUM".

Quote:
public void writeUM(int line, String Message) {

if(line == 1) {
uM.println(DriverStationLCD.Line.kMain6, 1, Message);
uM.updateLCD();
}
else if(line == 2) {
uM.println(DriverStationLCD.Line.kUser2, 1, Message);
uM.updateLCD();
}
else if(line == 3) {
uM.println(DriverStationLCD.Line.kUser3, 1, Message);
uM.updateLCD();
}
else if(line == 4) {
uM.println(DriverStationLCD.Line.kUser4, 1, Message);
uM.updateLCD();
}
else if(line == 5) {
uM.println(DriverStationLCD.Line.kUser5, 1, Message);
uM.updateLCD();
}
else if(line == 6) {
uM.println(DriverStationLCD.Line.kUser6, 1, Message);
uM.updateLCD();
}
}
So this is at the end of our program. I was wondering if I can put this in a different file and call that file instead.

Thanks.

.
__________________
-------------------------------------------------
Neal Patel
Team 1777
Shawnee Mission West
Viking Robotics

e-mail: neal.patel11@yahoo.com
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different approach from a rookie player feliks_rosenber Rules/Strategy 12 15-01-2007 15:59
What information can we access from the camera? Total Meltdown Programming 37 01-02-2006 11:24
What information can we access from the camera? Total Meltdown Programming 13 08-01-2006 13:50
Combining multiple objects in different files into the same scene and file? DinkyDogg 3D Animation and Competition 8 19-02-2005 19:14
Good book to learn MS Access from? Elgin Clock Math and Science 2 05-10-2004 20:20


All times are GMT -5. The time now is 09:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi