Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

H2 is another good embedded database:
http://www.h2database.com/html/main.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

destroy cookies

Please elaborate if you have a question. "destroy cookies" is not sufficient.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And your question? Posting your assignment is not a question.
http://www.daniweb.com/forums/announcement9-2.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read before you post. That is exactly what neilcoffey explained above - in January.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

moved...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You should start typing - that's where source code comes from. Post actual questions when you have specific troubles.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

i want source code for online banking using php

Then you're just out of luck I suppose, because this isn't "Codes R Us" and you didn't even manage to find the correct language section - this is Java, not PHP.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If nothing else Dani could stick the MFF below "related forum features" instead of on top. I don't mind scrolling around to wherever it is at, as long as it is on every page like it was. Its pretty handy to see new posts all over the site.

I think this is a good idea. If the other stuff just has to go higher up the bar, put MFF down to the bottom. At least it would still be visible on all pages.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>When you first visit DaniWeb, how do you begin your visit?
Sorry, late reply. I went out of town. I hit the User CP first as well, to check subscribed threads. After that, I keep an eye on Favorite Forums to see if new posts pop up. The fact that it was always visible while I was looking through other things was what made it so useful. As a mod, it's handy to be able to keep an eye on reported posts without having to go check some other page all the time.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I understand you can't please everyone, however it's also worth considering 648,000 of the users you mentioned probably have less than 3 posts each, while the bulk of the answers to questions here come from less than 100 members - the vocal ones.

Many of us had to adjust our ways considerably with the last rounds of major changes. Having settled into new habits, it's frustrating to see a useful feature that we've settled into taken away.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Which language are you developing it in?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, I guess the regular users who have posted asking what happened to it and wanting it to be returned were not at that conference. I've seen 8 posts on it since it disappeared yesterday.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yeah, I thought that feature was pretty handy also.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Might want to check that...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Cast your Graphics reference to Graphics2D and turn on anti-aliasing:

Graphics2D g2D = (Graphics2D)g;
g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
kolibrizas commented: That really solves my issue! +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Those are actually unrelated to the painting example. That code just makes sure that the GUI initialization occurs on the event dispatch thread. You can read more about that here if you are curious:
http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html

Stefano Mtangoo commented: Great piece of code, good explanations! +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Here's the minimal implementation of drawing lines on a JPanel. The important part is extending JPanel to override paintComponent() and use the Graphics reference to paint what you need to.

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class LinePaintDemo extends JPanel{

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.setColor(Color.BLUE);
        g.drawLine(0, 0, getWidth(), getHeight());
        g.drawLine(getWidth(), 0, 0, getHeight());
    }

    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                JFrame frame = new JFrame();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.add(new LinePaintDemo());
                frame.setSize(300,300);
                frame.setVisible(true);
            }
        });
    }
}

There is also a drawImage() method in the Graphics class.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This is your third post asking for these definitions of basic technical terms. Are you completely inept at searching on your own or are you just too lazy to do the job?

It's a freaking keyboard. Why would you even put that in a manual at all? That's like defining 'pencil'.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Move the validate() call down after you add the "Game" component

c.add(Game, BorderLayout.CENTER);
			c.validate();
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You're adding your components to the frame content pane itself - not the JPanel that you're constructing. So you end up with an empty panel plus your splitpane. You just need alter two lines to fix that

frame = iframe;
        // you want to set the panel layout and pass it as ref instead of 'container'
        [B]setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));[/B]
        splitPane1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
        splitPane1.setPreferredSize(new Dimension(1100, 800));
        splitPane1.setOneTouchExpandable(true);
        splitPane1.setDividerLocation(0.9);
        splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
        splitPane2.setOneTouchExpandable(true);
        splitPane2.setDividerLocation(0.5);
        font = new Font("Monospaced", Font.BOLD, 14);

        Panel2 = new JPanel();
        Panel2.setBackground(Color.white);
        Panel3 = new JPanel();
        Panel3.setBackground(Color.white);
        Panel1 = new JPanel();
        Panel1.setBackground(Color.white);

        splitPane1.setResizeWeight(0.9);
        splitPane2.setResizeWeight(0.5);

        splitPane1.add(splitPane2);
        splitPane1.add(Panel2);
        splitPane2.add(Panel3);
        splitPane2.add(Panel1);
        splitPane1.setVisible(true);
        splitPane2.setVisible(true);
        // add to panel - not 'container'
        [B]add(splitPane1);[/B]

edit: I really don't see any use for the "container" parameter at all. It's redundant with the frame reference and depending on what else you plan to do with the code you may not even need the frame reference.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You don't call that method directly. That is called by the UI painting methods. If you call repaint() to update the screen, that method will automatically be called.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

What you describe sounds like it should work just fine. Perhaps you have a bug in adding to your x position or you are re-declaring x to be zero each iteration? Hard to say without code.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

^^ Yep, that.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It is most likely a focus issue. Read the tutorial on writing key listeners: http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html

If you need to respond to specific keys being typed, it's usually easier to use a key binding instead of a key listener.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'd recommend reading this: http://www.daniweb.com/forums/announcement9-2.html

Begin outlining the logic of the program enough to ask specific questions.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm sure that jhoop would have appreciated this information two years ago.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Right-click on the panel or frame object in the Navigator pane and "Set Layout" to a different layout.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would guess that you might be declaring a local "exit" button variable and adding that to the container, instead of the one that you have declared at the class level. I can't really say for certain with just the excepts that you posted.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
booster1 = numBoxes.BandBooster(name);

is not valid and will not compile. You need to updateSales() for "booster1", which you have a method for.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I've used the Netbeans GUI builder for years and I don't know what you're referring to. Perhaps if you could be more specific someone could offer advice?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

convert for loop to a while loop
for count= 1 to 50
display count
End for

while (notPayingAttentionToTheRules) {
  ignore();
}

Start a new thread if you have a question. Show some effort if you would like assistance.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That error message should contain a little more information at the end. They are appending the string description on that line.

If you want more info than that, add an "e2.printStackTrace()" in the catch block. The app might need the images in the jar file. Open up the original jar and see what all is in there.

Edit: Yep, I just downloaded the app and checked. The images are in there as well. Try rebuilding your jar with

jar [B]u[/B]vf TunerApplet.jar TunerApplet.class

to update the existing jar (you may want to make a copy of it first :) )

samarudge commented: Very good information, helpful and quick response +2
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Happygeek already pointed out our acceptable use policy in your other thread.

Deletion of forum content is not merely a matter of request. Once you posted the information in publicly available forum, it became non-private by your own choice.

Edit: Cross-post with jbennet. Sorry for any confusion.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The api doc on getElementsByTagName states that it

Returns a NodeList of all descendant Elements with a given tag name, in document order.

So yes, you should be able to pair them directly.

On the second question, you say the sax parser is dying on an out of memory or the dom parser? I wouldn't think the sax parser would have any trouble with that since it's more like a firehose of data and doesn't need to retain the entire model in memory.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Could be he wants a butcher.
Or a hair stylist.
Or a clip-booker.

Or maybe just a freaky chick who plays with razorblades after all...

What's the verdict, thinkersgroup?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, if you wanted the latest Xerces libraries, you did need to download them and add them to your project. It just happens that Sun also included a Xerces implementation as the default for the JAXP document builder factory.

It is still worth your time to learn how to set up those libraries within your project, since chances are you'll want to use some third-party jar again in the future.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If any budy speak urdu reply

Did you miss this in the forum rules?

We strive to be a community geared towards the professional. We strongly encourage all posts to be in full-sentence English.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, I'm aware of the subculture directly referred to... I was just throwing out a "benefit of the doubt" possibility. :)

Perhaps he wants someone that's into body building?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps the OP means "cute" girl? That 'e' can make a lot of difference :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Because a version of the xerces parser ships with the JDK and is used as the default DocumentBuilderFactory if you haven't registered a different one.

It's not using the libraries that you downloaded, but that may not matter to you at all if you just want a DOM to work with :)

If you have the xercesImpl.jar visible in the Libraries node of your Projects explorer, then you should be able to instantiate that parser directly without the compiler complaining.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Did you not have a "xerces.jar" file as well? From the online docs it looks like you should, but perhaps "xercesImpl.jar" has replaced that.

Edit: I just pulled down the latest binaries and xerces.jar is not in there, so that's out as a possibility. I still wonder about your project setup, because the error message points to a class path issue.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I don't think you want that semi-colon on the end of your if() statement - it makes for an empty statement.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to add the jar files for those libraries to your project properties. In the Project Propteries window, select Libraries and add those jars in the Compile section.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

main() shouldn't be accessing those variables directly. They are instance variables of your database class. Most of that code should be in your action listener for the submit button.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You want to submit the text of "queryField", not the component itself.