server_crash 64 Postaholic

Shhewww, that's a lot of work..8 files.

It will be hard to tell what to compile first. You'll need to find the file that calls no other classes. Since I don't know the code or anything, I think the best thing for you, is to compile everyone of them until you don't get an error. You should get an error on the ones that call other classes that aren't compiled. Then once you get one of them compiled, start the process over!

server_crash 64 Postaholic

Personally, I would go to an educational forum that deals with colleges and advice. That's about all I can recommend. You can try some different software forums, but I doubt you'll find the help you want.

server_crash 64 Postaholic

It seems like that's a bug. I've found pages saying it's a bug, but can't find a fix to it.

server_crash 64 Postaholic

What's the error message? Is it saying recompile with Xlint?

server_crash 64 Postaholic

Don't use the deprecated methods. You simply set the thread to null, and that will stop it from running.

currentThread = null;

server_crash 64 Postaholic

You can check out this site. It says something about sending them in for repair. Right now I can't find the site I was looking for, but I'll keep looking.

http://www.e-tech.ca/016p-PDFErrorCodes.asp

Most file transfer programs do for some reason damage these files, but you could ask your friends to zip the files before sending. That usually solves it, but its a boring process.

By the way, I didn't take any offense to that. I completely undestand.

server_crash 64 Postaholic

The time desrepency is most likely an independant problem. If they have proof that the user made a mistake, or possibly a flaw in the system, they should change it, no questions asked. If you've already talked to the dean and he still wont budge, you might have to threaten to take it to the next level.... It's sad they wont fix something like this, either they're too lazy or just plain ignorant.


As for the transaction saved on her computer, It's VERY doubtful. The only way it would be saved is if it wasn't an internet app she was running and it automatically saved after transactions. If that was the case, I'm sure they would have said something though.

server_crash 64 Postaholic

By the way, you can post a link, I'll download them and send them to your email if you like.

server_crash 64 Postaholic

What's happening is the embedded reader is requesting portions of the file, rather than downloading the whole thing. I believe a possible cause was some type of firewall, but not sure..

ooops, sorry..Looks like you downloaded the file before opening it. Do you by any chance have dial up internet? I know the problem arised with me when I had dial up. It could be just one byte of a whole 5 mb that is rendering it unreadable, but I think there is tools out there to fill the gaps.

server_crash 64 Postaholic

Well, it would depend on the software architecture. The logfile seemed somewhat questionable. I don't think it would record anything untill it was selected, such as the class she wanted. So, that could be doubt on the system right there. Do you remember any other information contained in the logfile? Was there a lot of information, say everything the user did? It just doesn't make since to me that it would log that she actually went to the class. I would think it would only log something like that if it were selected, otherwise what's the point? Are these people causing problems with this? I would think a University would fix something like that without no problem, if not it definitely deserves some complaining. My oldest brother had some problems like this a few years back, and it took forever to get things cleared up.

Anyways, a hard copy(printed version) would be the best proof, but other than that it's the logfile, which I wouldn't base my knowledge on. If the University won't answer wether the problem has arised before, then there's no doubt there has.

server_crash 64 Postaholic

I don't like pseudo code, so I'll just do an example of the class. There are endless possibilities for this, so this is just one that could work. Some of the things probably shouldn't go, but that's ok.

public class Shape
{
      private Color color;
      private String shape;
      private int sides;
      public Shape(Color color)
      {
              this.color = color;
      }

      public void changeColor(Color color)
     {
            this.color = color;
     }
     
     public void setShape(String shape)
    {
                 this.shape = shape;
    }
    public void getShape()
    {
             return this.shape;
    }
    public void setSides(int sides)
   {
          this.sides = sides;
   }
   public void getSides()
   {
         return this.sides;
   }

   public void getInfo()
   {
             return "Generic Shape..This method needs to be overriden";
   }
}
server_crash 64 Postaholic

You didn't mention that before :)

How about 'Who invented the internet?' Hint: it was not Al Gore.

I invented the internet.

Anyways, the internet started out as some military experiment and now is an everday lifestyle, so that's what I would choose. Of course there is the invention of the computer.

server_crash 64 Postaholic

The first doubt should go with the system, although it's not likely. Has a problem ever arised like this before? My guess is that it's probably the student, but when it's his word against the system, there's not much you can do.

server_crash 64 Postaholic

No, I only have the hardcopy version. Here it is on amazon:
http://www.amazon.com/exec/obidos/tg/detail/-/0596007388/qid=1117718725/sr=8-3/ref=pd_csp_3/103-6351424-5749444?v=glance&s=books&n=507846
If you know the name of it, you might be able to find a e-version.

As for helping you, I'm really stuck. Have you tried posting on the java.sun.com forum? That is were all the pros hang out, so if you post there you would probably get a much better reply. If you do decide to do that, let me know what you find out.

Sorry I couldn't help much on this.

server_crash 64 Postaholic

Neat game, does flash require any programming?

server_crash 64 Postaholic

Alright, I see what your saying now. At first I was going to say some nested JPanels, but I think it's too good of a project to go down that road. Since you need a lot of control as to were these components go, I would suggest using the setBounds() method. It lets you place components anywere you like; it even lets you decide the width and the height of the component. Of course it will take some trial and error to get the components were you like! Anyways, the project looks great so far. I can tell you've spent a lot of time on it. Keep up the good work.

Here is a sample of the setbounds:

JButton btn = new JButton("Button");
btn.setBounds(30,30,60,40);

The setbounds looks like this:
setBounds(int X, int Y, int width, int height);


Now, with the setbounds, you DON'T use a layout manager. You simply set the layout manager to null.
setLayout(null);

It's important to remember that.

server_crash 64 Postaholic

What is the nature of these tasks you want to run?

In the mean time, Java version 1.5 added a lot of functions for threading. Some of those include: Scheduling tasks, advanced synchronization, and many more. I believe you might find something useful in there. I haven't got a link yet, but I do have a book specifically on 1.5 inwhich I can give you text from.

server_crash 64 Postaholic

I don't know much about starting the j2ee server, but I always thought it was the -verbose command that did it. Am I wrong?

server_crash 64 Postaholic

I don't know if that's completely legal, but it sounds like an excellent idea. I think you could make some big bucks off of that. I do think it will catch on, and probably fairly quickly...Great idea.

server_crash 64 Postaholic

Just construct a shape class with a couple of methods. The methods you have should be general enough so that each subclass could use them..Such as color. Just find some common relationships between the Rectangle, Circle, and Triangle, and that should give you the class. Since it's a generalized class, it won't be very specific, and it wont be very big. You could have some accessor and mutator methods involved, but I don't know if that's the best thing to do in this case.

server_crash 64 Postaholic

The imports statements simply import classes that you need from the java library , not the classes that you are trying to instantiate in your program. Have you compiled all the other classes before trying to compile that one class with the errors? Or are you getting errors with those other classes? See, in order for that code to run, there must be a class called a, which there is, but it also must already be compiled or the compiler wont recognize it.

server_crash 64 Postaholic

You can use threads. Threads allow you to set the priority to affect when it runs in according to other threads.

Here is a small tutorial, don't know if it will help or not.
http://www.dslab.tuwien.ac.at/javatutorial/essential/threads/

server_crash 64 Postaholic

I sent you an email.

server_crash 64 Postaholic

What about when you run the program, does nothing show up, or does the DesktopPane seem to have some size?

server_crash 64 Postaholic

It depends how you want to position them. You can use nested JPanels with layoutmanagers attatched to them, or if you just want some of the labels and stuff spread out, you can always add white spaces to them when constructing.

JLabel lbl = new JLabel("Label ");

like that but I wouldn't recommend it unless you are desperate.

I would also increase the size of that JFrame. That could be one reason why it's so cramped.

server_crash 64 Postaholic

Do you have another classed PassengerData? If so, you need to post it so when can run the program, or even better, you could post a screenshot of the GUI.

server_crash 64 Postaholic

I'm not sure I undestand what your doing with the calll of new a(this)...Could you explain.

The way you have it, it's like you have an inner class called a, and your are trying to pass the whole class to it. Am I correct?

server_crash 64 Postaholic
server_crash 64 Postaholic

There's a few problems with what you have. First of all it's not an applet! You extended JFrame, instead of JApplet. Next, applets don't have constructors or main methods. Instead of a main method they have the init() method. EX:

public void init()
{
  //What would normaly be in the constructor goes here.
}

Then your not adding the components to anything. You need a container that will hold the JPanels, TabbedPanes, and that kind of stuff. After that you must set it visible. In the init method you'll finish with something that looks like this:

Container content = getContentPane();
		fields.setLayout(new FlowLayout());
		setContentPane(content);
		setVisible(true)

If I have time, I will try to make up an example applet that uses tabbedpanes, and maybe that will help you out.

server_crash 64 Postaholic

You could add a layout manager to the JPanel, but it's probably not going to be as pretty as you want.

Do you mind posting a screenshot of what it's doing?

server_crash 64 Postaholic

You have to set the size of the JInternalFrames before you add them to the JDesktopPane. If you don't, then you will get 0 size for the JDesktopPane and it wont show up.
I wouldn't worrry about the size of the JDesktopPane. Why don't you try not setting the size of the JDesktopPane and see if it will resize automatically to the sizes of the JInternalFrames.
Also, all layout managers will resize or reposition the components when somethings changed. You could try to set the layout manager to null and use the setbounds() method to set the position of the frames, but I don't know how that will work.

server_crash 64 Postaholic

Are these JInternalFrames that your adding to the JDesktopPane?

server_crash 64 Postaholic

Thanks. I got it now. I was doing something wrong when I first tried it.

At first I was thinking that equation was coincidental and had really no relevance other than finding the correct number of dots, but since it works for all of them, there must be some kind of "strategy" this equation follows.

server_crash 64 Postaholic

I solved it, thanks

That's good. Sorry about not including where to find the variables and stuff like that, my mind wasn't working at the time of the post.

server_crash 64 Postaholic

It's your environment variables. Make sure the classpath is pointing to the tools.jar file found in the jdk directory. I'm guessing it says something like: "javac is not recognized as a command"...Something along that line.

server_crash 64 Postaholic

Each time I play(with 3 dots), I get a lot more than 11 dots. Am I doing something wrong? Can you show a simple picture of you playing the game, say in paint?

By the way, that seems like a pretty cool game even though I can't seem to get it right.

server_crash 64 Postaholic

Ok, since your using the command prompt I can help you even more, because that's what I use. First of all, you need to create a folder on the C drive, and name it whatever you want. This is the folder you'll put all of your source files, class files, and miscelaneous files in.

Now to the environment variables:

Considering you have windows:

Goto start--->right click on my computer--->select properties
Goto the advanced tab, and you should see a button at the bottom that says environment variables...click on that.

The only thing you need to worry about is the PATH variable, and the CLASSPATH variable, nothing else.

SKIP THIS STEP AND GO ON TO THE CLASSPATH, IF IT DOESN'T WORK AFTER SETTING THE CLASSPATH, THEN COME BACK AND SET THIS.
The path variable must point to the bin folder in the sun app server, and the bin folder in the jdk directory. Now, those are two different directories, so you seperate them with a semicolon when creating it. Here is what mine looks like:

C:\Sun\AppServer\bin;C:\Program Files\Java\jdk1.5.0\bin


Classpath....This points to the tools.jar file in the jdk directory. It's pretty easy to find. Here is what mine looks like:

.;%classpath%.;C\Program Files\Java\jdk1.5.0\lib\tools.jar

Your's will look similar, although you do not need the .;%classpath%.; statement.


Next, you need to know how to access your files at the command line.

To do so, you simply type cd/folderName at …

server_crash 64 Postaholic

server_crash, first, I want to thank you for helping me so much with this problem.

Your very welcome. I love helping people such as you who are so appreciative and hard working. Keep up the good work!

server_crash 64 Postaholic

I think I would go with honeypots. That could be an intersting project.

server_crash 64 Postaholic

try this link:

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=de&q=inurl%3Ajava+filetype%3Apdf&lr=&btnG=Google-Suche

Actually, my browser is in german so you might not get english results. So just copy and paste this into google search and it will come up some ebooks(pdf files):

inurl:java filetype:pdf
server_crash 64 Postaholic

Ok, you can try to copy and paste the class file into the right directory and try running it. That would probably work, but it wont fix the problem.

You said something about the javac command? Are you using the command line? If so, that error is the result of your environment variables not being set correctly.

server_crash 64 Postaholic

Sorry, that's about all the help I can offer.

server_crash 64 Postaholic

Not without editing the word file. If you could it would be ideal, and then just add a personalized clue on the same line as the word, separated by a delimiter. With that many words, however, that simply won't do. If the game is going to be online accessible, you could read the HTML output from something like "Thesaurus.com" or "dictionary.com" with the use of the thesaurus, rip apart the HTML, and grap a word that's a synonym. I know that these all seem fairly rough, but that's how I'd do it.

Thanks for the suggestion Comatose; that's not a bad idea at all. Maybe I could somehow blend my webcrawler in with the program to help out with the findings.
Thanks.

server_crash 64 Postaholic

I don't think it would work with an RTF document. Have you tried a different type?

server_crash 64 Postaholic

For the java2 certification, you CAN'T just choose any old book. You would be suprised at the amount of stuff that regular books don't teach you. I had read about 3 or 4 java books, and tons of tutorials and once I started reading that certification prep book, I felt VERY stupid.

server_crash 64 Postaholic

I would go with the laptop. You can do so much more with a computer than a game console. My laptop really isn't built for gaming, but I can play almost any game I want without any problems and it's just a Pentium M at 1.5GHZ. Of course there's a price variation between the two!

server_crash 64 Postaholic

I would think a JEditorPane would work, but not sure.

server_crash 64 Postaholic

Things work out ok?

server_crash 64 Postaholic

I need a good scheme for choosing a keyword from a definition. The scheme must be universal because I'm reading from a list of 5000 words with definitions. This is for my hangman game I made, and I want to give the user a clue as to what the word is. At the end, wether they win or lose, I show them the definition. I've tried grabing the largest word in the definition and puting that as the clue, but sometimes the largest word means the direct opposite of what the word actually is.

Here is a few definitions in the list if that helps:

able-bodied adj. Competent for physical service.
ablution n. A washing or cleansing, especially of the body.
abnegate v. To renounce (a right or privilege).
abnormal adj. Not conformed to the ordinary rule or standard.

Any suggestions is greatly appreciated.

server_crash 64 Postaholic

I had to do a diamond once, making two triangles. I could post the code if you need it, but it looks like you've already got it solved.