Hi, i am testing
public class Test {
public static displayPB(){
JFrame parentFrame = new JFrame();
parentFrame.setSize(500, 150);
JLabel jl = new JLabel();
...
Type: Posts; User: Khadafi
Hi, i am testing
public class Test {
public static displayPB(){
JFrame parentFrame = new JFrame();
parentFrame.setSize(500, 150);
JLabel jl = new JLabel();
...
Thanks, that makes sense.
But what is the way to skip over some parts, like maybe the first 10 lines etc.
Thanks.
oo yea I remember hearing that before.
Thanks for that =), works great.
Hi, I am having troube with returning a boolean
public boolean check(String name, String date){
boolean test = false;
for(int i=0; i<myList.size(); i++){...
Hi, I have got it working where I can read in data from a file and store it into strings.
e.g. the format Name year year2
but the file that i need to import has data before the actual...
Hi, thanks, what you said made me realise what I was doing wrong =).
What i was doing wrong was that I was making a reference to the other class multiple times in each part.
e.g Something...
I have a different problem, with the arraylist.
I call a method from another class and add an element to that arraylist, if i print out the contents of the arraylist from within the method that...
Hi, I figured out what i was doing wrong.
I had to create an object of the type MyStructTest, and then set its attributes. and then add that to the arraylist.
Thanks.
Thanks that makes sense, i've got the panel way to work, i might try the JDialog way later.
Thanks =).
Hi, I am creating a class that is like a (struct in c++),
class MyStructTest
{
public String var1, var2, var3;
public MyStructTest(String var1, var2, var3) {
...
Hi, I have created a GUI with a frame, panel, buttons etc etc
I now need to add a JProgressBar. All the examples and tutorials I am finding are for creating a JProgressBar and addding it to the...
Hi, thanks everyone for the help but dont worry, I've already done it.
Many thanks.
Oo thanks =), thats great. Such a silly mistake on my side, I dont know why I didnt realise.
Thank you very much.
Hi, if i print out System.out.println("<"+s.trim()+">");
i get an output
<NameAttrib>
<YearAttrib>
<Year2Attrib>
then the next lines
<NameAttrib>
<YearAttrib>
<Year2Attrib>...
In a way as it can recognise and split the line into the 3.parts, but I just want to seperate the 3 parts and store each in a String?
Thanks
Hi, thanks.
I am trying a different way as the other way is just confusing me.
With this new way i think i am closer as i have the data split to the way i want it.
while...
Hi, yes that is what I was trying but didn't know how to write the delimiter for that.
Thanks.
Hi, thanks for your help, I got it working.
Thanks once again.
the data is in a file, and is just text (like a txt file)
A Name (2009) 2009
i want to read in the data with the scanner (and then assign what is read in into String variables),
...
Hi, I need to create another scanner to take in data in the format
A Name (2009) 2009
Another Name (2011) 2011
..etc that are stored in a list file
I need the name 'A...
Hi, thanks, I understand now, the ToString method i had written was overriding the default ToString method.
thanks once again.
Hi, i have created a class for example People, and then another class PeopleList
the PeopleList class uses the People Class to make an array list of the type people.
in the People class i have a...
Yes thing printed out via System.out.print().
Ill try that now.
Thanks
Thanks, I got it working =).
Thanks thats what I have been using whilst making the GUI.
but i am not sure of how to display the console within the GUI.
thanks