• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in loding FlightList on Combobox

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I had created a method getRecords() in Data class which returns
the array of Flight numbers.
eg:-
public String[] getRecords()throws IOException{
String [] values=readRecord();
return values;
}
**************************************************************
on My ClientGUI i had created this method to load Flight numbers
on My combobox but when a client GUI is Executed on another client the smallboxes are appeared on my combobox.Plz help me to get rid out of these small boxes.
In My ClientGUI the getRecord() method is as follows:-
where intf is interface
void getRecords(){
try
{
int records=intf.getRecordCount();
for(int i=1; i<=records; i++)
{
String [] val=intf.getRecords();
vector.addElement(new String(val[0]));
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
Anurag Mishra
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where the Data class reads the data from the file, you want to .trim() the data to get rid of those boxes. Look at the deprecated method that you fixed in the read method of the data class.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic