peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

seems solved to me. anyways u can use this tag in ur container or where u dont want white space. margin-top:0px;

You may want to read a post by MidMagic in this thread

wickedsunny commented: thanks for telling me about the 0units thing +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Read the article Convert Java to EXE - Why, When, When Not and How, make your opinion of what you been told and act upon it.

My opinion: stay away from EXE and use JAR

javaAddict commented: Nice article +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It was tricky to setup
Advantages will be the speed from Apache, speed with which you can add new modules and lot more documentation then for IIS

darkagn commented: Thanks for the advice :) +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well I will considerate my previous post as waste of my precious time as you did not even commented on suggested topic and rather went on your personal rant about us not helping you.
Good luck with your search.

PS: It will not help other undergraduates as they will simple create new post to just get "original" for their own project. I think I'm entitled to this statement after 4 years with the community...

Ezzaral commented: Yes, may as well save your breath here. The poster just doesn't get it. +12
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i am doing HND in computing and i need to develop a software project;
the problem that i have no idea what can i develop.
actually if i can find a real world case or areal customer ,i will develop it for him for free;
but he should not be in harry ;
if anybody has ideas or a real customer or a company interested please please please tell me ;
thank you all; <<email snipped>>

You demand that people give you real project and but you are failing to provide basic info on your skills and level of the knowledge.

Alex Edwards commented: That's something people rarely think of when making offers similar to the way the OP is. Good point. +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I don't think you 're helpin at all

Your own arrogance is making difficult to deal with this.

  1. As previously stated you should search forum for suggestions as many made and discussed, we are not "IDEA FACTORY" to come up with something for every lazy student
  2. Ezzaral, suggested you do something you have interest in and asked you what it would be! What you did you just fired up against him without thinking.
  3. This forum has a one important rule "We only give homework help to those who show effort", follow it or get nothing from us. We happy to discuss any of the ideas and provide many suggestions, however it is up to you to take it forward

And for ideas try this

  • For my BSc degree I did Java application to deal with TIFF and PDF documents. Splitting or combining selected documents, page pagination and page watermarking, page count and page size count(A4, A3 etc.), pdf e-bible (variety of PDF documents link up with index file, operator has to do links from index to each document but return links can be automated) and lastly converting from TIFF to PDF or vice versa.
  • For my MSc I'm nearly done with Text-to-Speech on mobile devices for blind and visually impaired people using Java Microedition
  • Project by my friend: GUI (graphic user interface) for MySQL database maintenance done with JSP+JSF+JSTL (something along the line of phpMyAdmin, but Java based)
  • Another friend: made booking reservation system …
javaAddict commented: Very helpful to someone not willing to help himself +3
jasimp commented: more help than I would have given him +8
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at this post http://www.daniweb.com/forums/thread141776.html at the end is what you looking for

stephen84s commented: Shameless self promotion yet again :P !!! +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I hate to be beaten for fastest answer :twisted:

Yes "My message" is title that you can edit

Other possible messages types
ERROR_MESSAGE
INFORMATION_MESSAGE
QUESTION_MESSAGE
PLAIN_MESSAGE

Anyway here is tutorial on How to Make Dialogs from Java Sun website

Ezzaral commented: hehe... you have to settle for silver in the answer race :P +12
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please search JSP forum section for the answer is definite there.
Hint, I made a specific post on the MVC that is listed often lately

stephen84s commented: Yep let them search for it +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I created menu for mobile phone, where after you make move screen should be repainted and after that a sound should be played. However at present stage sound is played first and just after that Canvas view is repainted. Bellow is skeleton of the class

public class ContactMenu extends Canvas implements CommandListener
{
    
    public ContactMenu()
    {
        backCommand = new Command("Back", Command.BACK, 0);
        addCommand(backCommand);        
        selectCommand = new Command("Select", Command.SCREEN, 2);
        addCommand(selectCommand);        
        setCommandListener(this);        
        
        backImg = il.loadImage("se_logo2.jpg");
    }
    
    public void paint(Graphics g)
    {
        //All drawing activities
        playSelected();
    }
    
    public void commandAction(Command c, Displayable d)
    {
        if(lastCmd.equals(c.getLabel()))
        {
            if (c == backCommand)
            {
            }            
        }
        else
        {
            lastCmd = c.getLabel();
            tts.setSoundURL(lastCmd.toLowerCase());
            tts.playSound("soundURL");
        }
    }
    
    protected void keyPressed(int keyCode)
    {
        String str = getKeyName(keyCode);
        if(str.equals("Up") || str.equals("UP"))
        {
            cml.moveSelection(-1);
            repaint();
        }
        if(str.equals("Down") || str.equals("DOWN"))
        {
            cml.moveSelection(1);
            repaint();
        }
    }
    
    public void playSelected()
    {        
    }
    
    public void playSelected(String str)
    {
    }
}

I tried to move playSelected() at the end of keyPressed(), however this made no change to processing. Any suggestions how to tackle this issue?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That would be because you did not follow life cycle of applet, you never actually initialized your applet

Life Cycle of an Applet: Basically, there are four methods in the Applet class on which any applet is built.

  • init: This method is intended for whatever initialization is needed for your applet. It is called after the param attributes of the applet tag.
  • start: This method is automatically called after init method. It is also called whenever user returns to the page containing the applet after visiting other pages.
  • stop: This method is automatically called whenever the user moves away from the page containing applets. You can use this method to stop an animation.
  • destroy: This method is only called when the browser shuts down normally.

Java Sun Tutorials - Lesson Applets READ AND LEARN

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not website but a book Beginning JSP, JSF and Tomcat Web Development - From novice to Professional (you not gone get "pro" but you will getter better understanding of the problem and how you can manage it)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Request to move the post submitted...

PS: Shame on PHP dude for not knowing difference between Java and JavaScript

stephen84s commented: How could I have missed to add any taunts in my post . . . . good thing you filled the gap :P +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Announcement on top of the Java forum section "We only give homework help to those who show effort".

Read it please.

Alex Edwards commented: Yet another sight for incredibly sore eyes =) +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

<html:option> is used with Apache Struts something like this example (There is no explanation to code, just reference from which book the code come )
For stuts tutorial on form you may consider look at this tutorial, maybe this from from IBM (based on Websphere, but general logic can be re-used) or Advanced Forms Handling in Struts 1.1 (includes example of code in zip form)

stephen84s commented: Shucks I gotta learn to read the posts ,ore carefully +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Looks like you put too much compression. Am I right to say you created the bottom part first and then tried to add the top section?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can get lot of info on Java Microedition development from this post http://www.daniweb.com/forums/post646446-14.html. Beside primary requirements I also mention alternative tools for development and there are links for tutorial and some reading which I found helpful or interesting. If you have any specific questions you are more then welcome to ask in Java section or in other forum sections if you decide to use different language.
There is variety of programming languages for mobile devices, wikipedia article on "Mobile Development" can give you quick over view

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i want that

Another clearly explained request...

Ezzaral commented: Definitely. +11
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Google JavaScript+disable+right+button, however you should be aware there is PrtScr (print screen) button plus few others combinations and also as soon person enters your site and images are displayed he/she already got them and simple search of computer directory will find them.

Disabling right mouse button is old fashioned idea of securing web page content. It never actually worked...

mexabet commented: Great insight and pragmatic! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

For start by using simple String methods such as String.indexOf(String), String.lastIndexOf(string) or with Regular Expressions

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
public void main(String[] args) throws Exception {}

HAVE TO BE

public static void main(String[] args) throws Exception {}

PS: Throwing exception directly from main method is bad thing to do.
PS2: In the future please use code tags to post any code [code]YOUR CODE HERE[/code]

aeinstein commented: Patience is a virtue; many wouldn't have even started reading that request, imho. +12
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Most sites will not tolerate the amount of "interesting" external links you provide either

John A commented: hehe +15
Ezzaral commented: !! :) +11
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I made it a "small" changes to your coding. Now it is like this :)

Customer.java

public class Customer {
      
    public static void main(String[] args) {
        CustomerFunctions cf = new CustomerFunctions();
        cf.start();     
    }
}

CustomerFunctions.java

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Vector;
import java.util.Scanner;
import java.util.*;

public class CustomerFunctions {
	private CustomerData cData = new CustomerData();
	private Vector fileIn;
	private ArrayList<CustomerData> custRec = new ArrayList<CustomerData>();
	
    public CustomerFunctions() {}
    
    public void start(){    	
        Scanner input = new Scanner(System.in);
       
        String choice,value,fileName;
 
        do{
            menu();
            System.out.println("Please enter your choice: ");
            value = input.next();
            choice = value;
            
                    
           if(choice.equals("1")){
               System.out.println("Please enter name of input file: ");
               fileName = input.next();
               readFile(fileName);
               storeData(fileIn);
           }else if(choice.equals("2")){
               displayData();
           }else if(choice.equals("3")){
               System.out.println("choice 3");
           }else if(choice.equals("q")){
               System.out.println("exit");
           }
             
          }while(!choice.equals("q"));
     
       }

    
    public void readFile(String fileName){
      
     BufferedReader br = null;
     String line;
     fileIn = new Vector();
     
     try {
            br = new BufferedReader(new FileReader(fileName));
            br.ready();
            
            while((line = br.readLine()) != null){
            	if(!line.trim().equals(""))//to remove the empty line between clients data
            	{
            		fileIn.add(line);
            	}
            }
            
            br.close();
 
         }
         catch (FileNotFoundException ex) {
            System.out.println(ex.getMessage());
         }
         catch(IOException ioe){}
    }
    
    public void storeData(Vector fileIn)
    {
    	cData = new CustomerData();
    	for ( int i = 0; i < fileIn.size(); i++ )
    	{
    		switch(i%6)
    		{
    			case 0:
    				cData.setAccountID(Integer.parseInt(getToken((String)fileIn.elementAt(i))));
    				break;
    			case 1:
    				cData.setName(getToken((String)fileIn.elementAt(i)));
    				break;
    			case 2:
    				cData.setAddress(getToken((String)fileIn.elementAt(i)));
    				break;
    			case 3:
    				cData.setDob(getToken((String)fileIn.elementAt(i)));
    				break;
    			case 4:
    				cData.setPhoneNumber(getToken((String)fileIn.elementAt(i)));    				
    				break;
    			case 5:
    				cData.setBalance(Double.parseDouble(getToken((String)fileIn.elementAt(i))));
    				custRec.add(cData);
    				cData = new CustomerData();
    				break;
    			default:
    				break;
    		}      		  				
    	}    		
    }
    
    public void menu(){ 
        //Menu
        System.out.println("\n************Menu************");
        System.out.println("1) Input data");
        System.out.println("2) Display data");
        System.out.println("3) Output data");
        System.out.println("q) Quit\n"); 
    }
    
    public String getToken(String …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Because you are supposed to implement main method and just feed user fetched data into provided parser

sciwizeh commented: at least someone gets it +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

google.com ==>> java+demo+project

Laziness, the worst illness of humankind.

stephen84s commented: Ha Ha Ha ... Good one !!! +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

LOL, you forgot to provide source images that you use with your VisualMIDlet (no worry I got replacement).
The problem with your application is that from your VisualMIDlet you are trying to call upon another MIDlet in bad fashion. It is possible to call MIDlet from MIDlet (here is example), but it is recommended to use only one. Secondly I never did it so I will not able to advice if you push for two MIDlet option.
However if you decide to go for single MIDlet then you will need to modify one of them. I would modify VisaulMIDlet as BlueChewMIDlet is giving you solid ground to work from and it will be much easier to attach class with application GUI to it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Right click on project folder -> Properties -> in Category select Application Descriptor -> on right side of the window click on the MIDlets. Here you need to point NetBeans to MIDlet in your project. Click Add and find location of BlueChewMIDlet.java. Compile and run

Alex Edwards commented: The Phone Guru +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

After spending some time on JSP section of this forum as many before me, I come to the conclusion that we are in need of "proper" tutorial on this topic. This tutorial is not intended to teach you everything from top to bottom, it is just a starting point to show you what we mean by "DO NOT USE JSP FOR DIRECT DATABASE CONNECTIVITY!". In simple terms and examples I will try to explain the basics of MVC model 2. Therefore content has been kept as simple as possible to make it easier for beginners to grasp the basics without getting into a lot of application design jargon. That being said, there are many ways for this application being designed in a better manner and it's left as an exercise to the reader.

Short description
The tutorial will show simple example of a school login system, where after submitting correct user ID and password user is redirected to the next page in accordance with user group assignmentstudent - will see his personal details
teacher - will see his name on the top of the page with table of all students (user ID, first name, last name, email address and phone number)
administrator - will see his name on the top of the page with tables of all teachers and all students (user ID, first name, last name, email address and phone number)
Requirements Knowledge of HTML
Basic knowledge of Java - knowledge of Exception handling …

stephen84s commented: Good Idea .... Now I can just direct the guys mixing databases inside JSP here +2
javaAddict commented: Great Post. I will recomended it to others +1
Alex Edwards commented: Finally... and just when I thought all hope was lost @_@ +4
Ezzaral commented: A lot of effort in this tutorial. +19
CodeBoy101 commented: lovely! This guy is just one of the reasons why I love Daniweb.com! +2
~s.o.s~ commented: D'oh, I can't believe I missed to +rep this post. :-) +31
coroll commented: This is somthing i was looking for.nice work! +1
martin5211 commented: I tried the code. Very useful to get a wide idea. +4
cb0058385 commented: Post was enlightening....! +0
SagarSe7en commented: Excellento! Marvelleous! Well Written and thoroughly explained! Used it to display profile details according to the user logged in! NICE :-) +2
tux4life commented: Marvelous post :) +13
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dunno what could cause such thing. OK, in attachments are source files as I have them. They working fine. Just place these files in the project "src" folder to replace what ever you have there and run them. Let me know if you getting any errors etc.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

joshSCH attitude toward this forum did not change. After strolling around and being rude he was once again banned.

jwenting commented: yoohoo +18
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

wouldve been so cool though but im good with that.

No it wouldn't be cool, I'm software developer and I do not feel OK with somebody using my months of work for free if I did not decided to give it for free.
Secondly I have to work in order to get money and buy software I want to use. So why not you? If you do not wish to pay than use legal free stuff and not something stolen!

Ancient Dragon commented: Well said :) +35
sittas87 commented: my apologies peter. Guess you always learn. +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ask your self

  1. Did you do everything to prevent SQL injection
  2. Do you use id values as indentificators, did you secure option for array exploit
  3. Are you using RSS feeds, are they secure
  4. Hosting, who is responsible for website security? You or your web hosting company? Are the folder permission set correctly?

That is just few things you should look into...

Kavitha Butchi commented: thnx for your time, I shall look for all the security measures you have mentioned +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes that is sort of joke from jwenting as your question is sort of joke for us. Both of the technologies as evolving over time and have theirs pros and cons. It is up to you which path you choose to follow...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@hny_lyn

  1. Read the rules, no request for homework solutions to be send over by email or PM
  2. "i need the answer as soon as possible!!" is rude thing to say, we will help when we want, it doesn't matter to us that when you need to submit this home work
  3. a code that has exception attached to main method is one of the worst things and we do not like to see it

if you want it in JFrame then i've done it. Let me know if you still need it.

If you think you helping him, you are mistaken. By giving the code, hny_lyn will learn nothing. Copy & paste is not a solution when you learning

Ezzaral commented: Agree with all of this. +10
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is YOUR school work/work project so deal with it if you ignore advice from others with more experiences!

stephen84s commented: Now is this a rare sign of frustration from the Tiger ;-) +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In your case there possibility of more then one answer

  1. 3 or 4 tables that will put together questionar
  2. combination of database and coding coordination. Database can hold question with possible answer/s but you can also have field for page/coding action "create text field/area", "sort" that will trigger certain actions on your page
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Try this one, Horizontal CSS Dropdown Menus .
What do you think of it?

Grantmitch1 commented: :) +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

you just copy and paste the examples from w3schools

Copy & paste is not a way to learn for begginer. Always, always re-type the code. It doesn't matter if it is html, css, Java, C++ or any other. By typing it, you pay more attention what is happening inside the code, you built up on already existing knowledge by adding new blocks...

HI2Japan commented: Completely agree with you. Very good advice. +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sometimes slow internet connection or poster inpatient (hitting submit button twice) can do such thing.

If you come across post and you think there is something wrong with the post please use "Flag Bad Post" and type short message as "Double post + link( to double) or "Spam please delete". Shouting in post is inefficient....

Alex Edwards commented: I didn't know that - thanks! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

for loop from 1 to 19
if statement is num%2 == 1
yes, add to sum
no, next number
problem solved

Alex Edwards commented: Hah, you are quite the comedian =P +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes you can do it by reading Apache server documentation

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Everybody, enjoy the freedom of the information

With compliments from my ::DFC:: friends

Ancient Dragon commented: LOL :) +33
jasimp commented: hilarious +7
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.

For these of you who would like to learn more or start with Java Microedition - JME (also known as J2ME) here are few tips

What you need for development (download links) Your favourite IDE and Sun Java Wireless Toolkit 2.5.2 for CLDC Download (the latest available version as 13/07/2008)
NetBeans with integrated Mobility
IntelliJ IDEA, Eclipse ( setup )or any other IDE with support of JME
Custom Wireless Toolkit (to download one you have to register on the forum) Sony Ericsson ( Sony Ericsson SDK 2.5.0.2 for the Java(TM) ME Platform )
Nokia Java tools
Motorola ( MOTODEV SDK for Java ME v1.4 )

Recommended books by me :*

To start with JME Beginning J2ME: From Novice to Professional 3rd Edition
Kicking Butt with MIDP and MSA (newer version from same author with latest technology offers)

Advance topics: Mobile 3D Graphics
Mobile 3D Graphics with OpenGL ES and M3G
Pro J2ME Polish: Open Source Wireless Java Tools Suite
Pro Java ME MMAPI: Mobile Media API for Java Micro Edition
Mobile Web Services

Additional resources …

iamthwee commented: Good links, I intend to check them out. +15
~s.o.s~ commented: Nice contribution :-) +23
Hakoo commented: Peter Budo is great +0
kvprajapati commented: Great! Nice collection of links. +14
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

first install dreamweaver in your system,
it will easy to edit image mapping

Dreamweaver is not all, secondly is not for free and installing trial version for such banality is silly

Code is OK, however you should swap name attribute for id attribute in start of map tag <map name="map"> , as id attribute is required where name is just optional. Do not forget to add links to locations where to go after mouse click as these are currently not set href="http://TBA" . If you not sure what you doing you can have look at w3schools example on this topic

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I think this may to be of some interest also http://sonspring.com/journal/hoverbox-image-gallery

kevin wood commented: ful and gave good links +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Database is much better if you talking in large number of members.
Secondly think about how will you design it. Stacking all in one large table is silly idea. Your database should consist of number of tables specifically designed for certain task. For example user_data_table to store user details where each each user can be identify by unique ID. Then you can use this ID in others tables for example forum_posts. This will have unique ID for each post but also hold used ID as foreign key to associate post with user.

If you not sure how to approach database design make another post in Database Design section of this forum and provide full details of what you trying to store in database and what sort of functionality you want to achieve.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

>is it possible to type in a class as a .txt file and then print out:
You better explain what you mean by this. To help you here is few examples

  • get user input from console and then store it in file
  • get user input through some Swing components and store it in the file
  • read another file and either store it all or just part of it in new file

PS: You should post your code so we can see what you actualy trying to do. Please use code tags to post any code.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Welcomed to daniweb, do not worry about that automated PM you get for post editing, you spoted your mistake. Keep in mind edit button stay active only for 20 min, if I'm correct, after that you will not see it again ;)

grvs commented: corrected my mistake.. thanks +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you have no creativity and imagination for what to do, then there is no hope, as you will not able to say what is your strength and what is your weakeness...

ericstenson commented: I 2nd you. +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You have to simply love w3schools.com and all the examples which provides, mixed frameset and iframe

OmniX commented: Thanks +1