masijade 1,351 Industrious Poster Team Colleague Featured Poster

Show how you are loading images now and I will suggest a way of changing it. But really, look at the API docs for that method and for the class with which you are loading the images and try something.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

By using getResourceAsStream rather than File operations as the images within the jarfile are no longer "files" in and of themselves and so cannot be accessed through "File" classes (such as File, FileInputStream, FileChannel, or the Image operations that take a file as a parameter).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? What is that suppossed to be?

In any case, killing this zombie now. If you have a question start a new thread, please.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It might help to see the full error and the code, you know?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, press the "numlock" key to either activate or deactivate it?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

If you ask me "Search Results" would be a better String.

In any case you can always do this idiocy

char quote = '"';
String search = "<h3 class=" + quote + "r" + quote + ">"

or

char[] text = { '<', 'h', '3', ' ', 'c', 'l', 'a', 's', 's', '=', '"', 'r', '"', '>' }
String search = new String(text);

but, in any case the simple

String search = "<h3 class=\"r\">";

should work without any problem.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Correct escaping the call (with "\") to effectively inline "unalias" the command is the proper way to go.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Remove the query string from the executeUpdate call.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

See JDialog instead of JFrame.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Edit: Nevermind. I completely misread.

Edit Again: Include a read me in your distribution giving instructions to the user in case of problems. I.E. this is a user problem and you should provide support, but don't expect to be able to solve every environment related issue programatically.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

You don't add the group as a single entity you add each of the buttons to the group and wherever it is to be displayed. The group simply ensures that only one of those radios are selected at any one time.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

You haven't added the button group to anything.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Those items are created locally in other methods meaning they are not available within another method. It lloks as though you want to use instance variables rather than local variables.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

The same way you would in any SQL compliant db, with SQL. Google for an SQL tutorial/reference site, there are plenty out there.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Maybe if we knew what "problems" you are talking about.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

123 and abc

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It is not really a regex. Go to this page and scroll about two-thirds of the way down.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

As said in this post the action is, of course, either post or get, and the target is the servlets url, of course, again.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

The servlet url, of course, with either post or get.

Dean_Grobler commented: Didn't know it was just as simple as that, thank you. +1
masijade 1,351 Industrious Poster Team Colleague Featured Poster

It either must be from the same address that served the applet (and proxies can easily get in the way of this) or the clients need to modify their security policy files to allow it to connect to something else.

Edit: Or, I believe, that a signed applet can also connect to something other than its source address.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

That line should be structured

[access modifier] class <classname> [extends <classname>] [implements <interfacename>] {

where does "strings" fit into that?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It might help to know what errors. I am not going to play compiler and even try to figure them out when you could just post them. And fix your indentation, how do you expect anyone to be able to read that properly?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Pack the images into the jarfile with the app and use ImageIO and getResourceAsStream.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Did you try it?

Aside from the fact that you should be using PreparedStatement, create an actual Date object from that info, using a Calendar instance probably, and then using PReparedStatements setDate, but judging by the rest of tall this you are already in over your head and have no interest in learning how to do anything properly. A "close-enough-for-government-work" attitude.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
String bogus = year + month + date
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Seeing as how a ".bak" is normally a backup copy of some already existing file, I would say read the original and write the new or look at the API docs for FileChannel, I believe there is actually a "copy" method there (if I'm remembering correctly).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Why do you want "JSP coding", when you're currently using Java coding? Don't tell me you used a scriplet to get those values. Don't tell me that you don't know about ${param.xxx} JSP syntax. Why does everybody dive immediately into JSP and never look at the tutorials?

The J2EE(TM) 1.4 Tutorial
- The Java EE 5 Tutorial
- The Java EE 6 Tutorial

And as far as "concatenating" the values simply "output" them one after the other.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Edit Again: Nevermind, just noticed the call to wget. Chances are anyone who "steals" it is most likely to install the thing before using it "openly" especially when it is already an *nix system which makes installing a "valid" and "legal" version cheap and easy.

Edit: And did you pay attention to the other tidbit in the previous post. Otherwise, it would probably help to know your definition of "trigger".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Of course. There are, obviously, much better ways of going about it, though.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

just remove

}

from line34th.

It would help to explain to him why he should do that. Which has already been done, above, BTW.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Fixing your indentation your code looks like this

package helloworld;
import javax.swing.*;
import java.awt.event.*;

public class FourthApp extends JFrame implements ActionListener {
	JFrame interfaceFrame;
	JButton startButton, stopButton;
	public FourthApp() {	
		JFrame.setDefaultLookAndFeelDecorated(true);
		interfaceFrame = new JFrame("GUI");
		interfaceFrame.setSize(200,200);
		interfaceFrame.setVisible(true);
		interfaceFrame.setLayout(new java.awt.GridLayout(1,2));
		
		startButton = new JButton("Start");
		startButton.addActionListener(this);
		interfaceFrame.add(startButton);
		
		stopButton = new JButton("Stop");
		stopButton.addActionListener(this);
		interfaceFrame.add(stopButton);
		interfaceFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		interfaceFrame.setVisible(true);
	}
	
	public void actionPerformed(ActionEvent a) {
		if(a.getSource() == startButton){
			System.out.println("Start Button was Pressed");
		}	
		if(a.getSource() == stopButton) {
			System.out.println("Stop Button was Pressed");
		}
	}
}
public static void main(String[] args) {
	new FourthApp();
}
}

Do you notice the problem? Namely that extra closing brace after the actionPerformed method that ends that class definition, meaning that it expects the next line to declare a new class/interface/enum. As the error says.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, I'd be sorry to be the person monitoring that email address as that would simply send an email with every start up. What I do see about it though is you define CONFIGURE and check CONFIGURED

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Thanks :D

I'm sorry, but why did you not just check the API docs?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Probably doesn't want to create a new one if one already exists. But, in that case it has still been done wrongly, and there is no reason to have to place it back into the session, unless it is null after the get call, in which case it should be created an immediately placed into the session attritube. i.e.

ArrayList<String> bogus = session.getAttribute("bogus");
if (bogus == null) {
  bogus = new ArrayList<String>();
  session.putAttribute("bogus", bogus);
}
// do whatever you want with bogus except redefining it
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Just put the page back to the "right" place and change this "servlet" to a filter and apply the filter to the url for that page.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

I blindly wrote a small program and posted it .

(*)But for that you(masijade) will not put the negative points to my post.Mistakes may be happen at any time for any one.pls rememeber that.

Sorry, but with a join date from over a year ago you should, already, be fully familiar with our policies on that.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm I would comment out the "throw" statements in the mouse listener interface methods, again. Not that that, necessarily, is your problem, but ....

cwarn23 commented: Thankyou for the great advice :) +6
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well that is what the original from google gave me.
http://www.exampledepot.com/egs/java.net/GetImage.html

because those are simple examples and, simple examples are notoriously famous for leaving out all forms of error handling.

So I'm not sure what is meant to be in those catch blocks because the sample code had empty catch blocks and I'm not the greatest Java programmer.

Simply add a printStackTrace as follows:
before

} catch (Exception e) {}

after

} catch (Exception e) { e.printStackTrace(); }

and then look at the Java Console (you can access that from the browser menus), and not the use of the variable in that call, it is the same, of course, as that declared in the declaration of the catch block.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Aside from the fact that the provided code has nothing to do with the posted question. ;-)

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, stop ignoring Exceptions (see all of your empty catch blocks) and you just might figure out what the problem is.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It's old. That doesn't mean that learning it is a bad thing, or that it is not in active use on the market, but it is definately not a hot thing and nearly as far from a knew thing as COBOL.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? And have you read the intro to that class in the API docs which detail what's entailed in that? As was already suggested? And where is your attempt at all this?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Huh? Try again. Doing that would, of course, lead to an "else without if" compiler message. Please, don't guess, or at least try your guesses before posting them.

Edit: Damn! Too slow, again!

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm, the GregorianCalendar class?

Edit: Damn! Too slow!

masijade 1,351 Industrious Poster Team Colleague Featured Poster

The definition of recursion (essentially) is to call a method from within that same method, so, knowing that, and knowing that you need to add N to N - 1 what do you think might be appropriate in that "blank"?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Finished. What does your's look like?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Yes. Don't worry about "how big to make the array". Simply read the file and store the lines in an ArrayList (you do not have a preset size on those). If your "assignment instructions" (or whatever) require you to return an array, then, after reading the file, simply use the toArray method on the ArrayList.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? So it gives you an error? And? How did you determine that this sort method had anything to do with it, or are you just guessing? Print the stacktrace of the error and read it. It will tell you exactly where the problem is. If you find yourself incapable of zeroeing in on the problem this way, then post the full stack trace here and more code, that little snippet above tells us nothing.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

thank you both of you....

I want to know....

1.What is the BTW?(sry 4 my less knowledge;is it meen between?)

By The Way

2.compiler compile java-source code into java-byte code!
If so how compiler has been bailed up? bcz if it use java,how that java code compiled?

And? Many C compilers are written in c so how do they compile anything? And why, then, do you find it hard that the Java Compiler is written in Java. And it is the JVM that runs the byte code, not the compiler and are there are many ways of creating that byte code. You could even do it manually with a hex editor if you wanted to.

3.Is interpreter made by using assembly language?


Sry again for my less knowledge....

By "interpreter" I assume you mean the JVM. As I said, it could be. You could write one in shell script if you wanted to. As I already said, it doesn't matter as long as it is able to execute the byte code in the proscribed manner.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, you had said that doing the sync inside the method will allow the programmer to control which methods are synched. Well, you can do that with the synchronized keyword as well. Simply do not declare the methods you do not want to be synched as synchronized. Now, if you want to be able to control, for example, that only the excution of two lines out of a hundred line method are synched, then, yes, do the synchronization inside the method. But, if you are going to synch on the current instance, and the entire (or nearly the entire) method's content will be synched, then there is no reason not to use the synchnronized keyword on the method.