peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

LOL, seriously I need holidays...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

PS: Do not forget to use keyword "static" when adding the above method to your program.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It should be AND (&&) statements right instead of OR?

Nope, problem is with the use of "!=" which is basically same as using method "equals()" which is only allowed/available on object type. Character is primitive type hence the error which pop up.
Solution is to use compareTo() method. With simple creation of our own compare method we can get "true" or "false" return that can be used in while loop

public boolean compareChars(Character read, Character grade) {    
    return (read.compareTo(grade) == 0);  
}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
hi.. i m using netbeans 5.whenever i try to run any jsp/servlet /html file in netbeans,an error occurs "port 8084 is already occupied.but in 8084,apache tomcat runs.still the files does not run...


You may want to identify what application is running at that port.
Execute

netstat -aon | findstr “8080″

(the straight line between two commands on windows will come as two shorter lines over each other)
In my case last data in executed command stands for process ID (PID) was 3016. Next is

tasklist | findstr “3016″

this returned java.exe

If you got java as return then you have already running instance of Tomcat and you need to use Administrative Tools >> Services to shut down this instance. In case it is different application you need to configure either application to use different port of NetBeans to open Tomcat on different port

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i have a tictactoe java code that has mouse events in it. my professor wants me to run it in a mobile phone... can anyone help me with that? please... thanks in advance.

Yes, as long you show some interest...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You been lucky as there seems to be few people around. During the work week it may take few hours.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to pay closer attention to opening and closing of brackets. See bellow code (the code still will not compile and throw some errors which you need to solve)

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;

public class Calculator extends JFrame implements ActionListener{

    private JTextField displayText = new JTextField(30);
    private JButton[] button = new JButton[16];

    private String[] keys = {"7", "8", "9", "/",
    "4", "5", "6","*",
    "1", "2", "3", "-",
    "0", "C", "=", "+"};

    private String numStr1 = "";
    private String numStr2 = "";

    private char op;
    private boolean firstInput = true;

    public Calculator () {
        setTitle("Calculator");
        setSize(230, 200);
        Container pane = getContentPane();

        pane.setLayout(null);

        displayText.setSize(200, 30);
        displayText.setLocation(10,10);
        pane.add(displayText);

        int x, y;
        x = 10;
        y = 40;

        for (int ind = 0; ind < 16; ind++) {
            button[ind] = new JButton(keys[ind]);
            button[ind].addActionListener(this);
            button[ind].setSize(50, 30);
            button[ind].setLocation(x, y);
            pane.add(button[ind]);
            x = x + 50;

            if ((ind + 1) % 4 == 0) {
                x = 10;
                y = y +30;
            }
        }

        this.addWindowListener(new Window Adapter()) {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        }
    };

    setVisible(true);

//}

    public void actionPerformed(ActionEvent e) {
        String resultStr;

        String str = String.valueOf(e.getActionCommand());

        char ch = str.charAt(0);

        switch (ch) {
        case '0' :
        case '1' :
        case '2' :
        case '3' :
        case '4' :
        case '5' :
        case '6' :
        case '7' :
        case '8' :
        case '9' :
        if (firstInput) {
        numStr1 = numStr1 + ch;
        displayText.setText(numStr1);
        }
        else {
        numStr2 = numStr2 + ch;
        displayText.setText(numStr2);
        }
        break;

        case '+' :
        case …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

First of all start a new thread with your new code. This kind of thread is only for posting working code as an idea of sharing code for educational purposes.
Start a new thread and don't select code snippet.
Post your new code.

Then we will talk

No need to start new thread, just report it and I can change format from code snipped to thread as I did now. Nevertheless I know your intention was the best.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i couldnt start the server...i tried using commands in dos like.."tomcat start".The url i used was http://localhost:8080/

You would have to set path to tomcat for the command to be recognised in similar manner to what you did with Java so now you can call "java" or "javac" commands.
To start Tomcat without need of messing with path is either go to the location of startup.bat (or startup.sh under Unix/Linux) and then just execute "startup" or call startup file with absolute path such as "C:\Tomcat6.0.20\bin\startup"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You got general direction of the wind that files that you wish to deploy should be placed in webapps folder, unfortunately it is not full truth.
You need to provide your "ch" folder with minimal Tomcat deployment directory structure.

  1. Create new project folder in directory webapps (you already did this with creating new folder named ch)
  2. Place context.jsp in "ch" folder (you already did)
  3. In project folder create another folder called WEB-INF where you will save web.xml
  4. Create web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    
    <web-app>
    <welcome-file-list>
    	    <welcome-file>context.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
  5. Start server and call your JSP
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to manage "processing" done by forEach. This command just blindly output anything its found in the file. So either you need to filter data which should be displayed or which should be rejected. Or perhaps forward received data for further processing. Without knowing what exactly you want to achieve and what resources you using we can hardly advice on it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

"connection reset while the page was loading" is obvious that attempted connection time is out. Reason, you cannot use "localhost:8080" to access server from other machine then your's.
1. If client is sharing same local network as you you can use IP address of your pc.
2. If client is accessing your project through internet your machine need either static IP or you should set DNS and commercial IP

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi I don't find much about drag and drop feature in javascript but here is a java drag drop feature which might be helpful to you . Its an explanation of java drag drop feature.
SNIP
Hope it will help you

That is for applications and not for website...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Rule No.1 - Always read forum rules and that includes also forum section rules like this one We only give homework help to those who show effort

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, contact Abbey sales and together you should be able to find solution

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is no problem with that if you start ask specific question and not place just generic request...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

DaniWeb Digest online copy is not available. If you click on the link from email you get message "An issue of our newsletter doesn't exist for this day."
Also where can we found link for previous Digests that been previously located at the bottom of the page?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@cwarn23 are you sure you do not have any messages in Sent Items?
Whenever you send personal message if check box bellow post editing area is left checked you get copy stored in your Sent Items.

cwarn23 commented: Great information! +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just two more things

  • There is java2s.com site which hold number of examples, but no real tutorials with proper explanation - good for quick referencing
  • Also I found this book JDBC Recipes: A Problem-Solution Approach (limited preview through google books) which is targeting MySQL and Oracle. Seems to be interesting reading
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Thirusha thank you for spreading word about it, but that is just one example with specific aim to show how database connectivity should be handled through servlets no Java Server Pages. However I appreciate it.

@llemes4011 MySQL to Java communication is virtually no different to any other database. The main difference is connection string

getConnection("jdbc:mysql://localhost/danijsptutorial", USER_NAME, PASSWORD);

I do not really recall any specific book for Java & MySQL but I remember there was section in Java How to Program 6th edition that should help you (later versions 8th moved to Derby, not sure what is in 9th that is the latest from Deitel). I read that one back at university and these days I just make sure that query is correct and take necessary steps to use it, which can be found easily all over web (you can say I just hack it together).

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

the problem there is how can i retrieve those values..from database? jst after it is being stored.

I mean to calculate the difference the values should be retrieved again rite?(I use textbox to take the time from user and store it in the database...)

(extra - I use java..)


Now I am beginning to think that I have done some serious mistake ..(can't figure out though!!!!)
Please help me on this!!

In similar manner as you insert into table you can retrieve from table. Here is example from JSP section

/*
* Retrive data of single user
*/
public UserBean getUserData(String userName, String password)
{	
	UserBean userBean = new UserBean();
	Connection conn = getConnection();	
    if (conn != null) 
    {
    	ResultSet rs = null;
    	Statement stmt = null;
	try
	{
	String strQuery = 
	"SELECT u.uid, firstName, lastName, address1, address2, city, postCode, email, phone, ug.groupName as userGroup "
	+"FROM user u, usergroup ug WHERE uid='"+userName+"' AND password='"+password+"' AND groupName IN"
	+" (SELECT groupName FROM usergroup WHERE groupid =(SELECT groupid FROM usergroup_mapping WHERE uid=u.uid))";
		stmt = conn.createStatement();
		rs = stmt.executeQuery( strQuery);	

		while(rs.next())
		{
			userBean.setUid(rs.getString("uid"));
			userBean.setFirstName(rs.getString("firstName"));
			userBean.setLastName(rs.getString("lastName"));
			userBean.setAddress1(rs.getString("address1"));
			userBean.setAddress2(rs.getString("address2"));

			userBean.setCity(rs.getString("city"));
			userBean.setPostCode(rs.getString("postCode"));
			userBean.setEmail(rs.getString("email"));
			userBean.setPhone(rs.getInt("phone"));
			userBean.setUserGroup(rs.getString("userGroup"));
		}				
	}//end of try
	catch(SQLException ex)
	{			
	System.out.println("SQLException:" + ex.getMessage());								
	}
	finally 
	{
       	if (stmt != null) 
       	{
       		try { stmt.close(); }
       		catch (SQLException e) { e.printStackTrace();}
       	}
       	putConnection(conn);	        
       }//end of finally
   }//end of if
   return userBean;
}
  • Set query
  • Execute query
  • Retrieve data
  • Analyse and process data

Because you stored data …

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can do it your self ;)

Just click on "Mark as Solved" under last post...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

My realtek and Intel (3945 abg laptop chipset) worked out of the box

Good to know that. I'm not gone mess up now my box as I'm looking for replacement soon, plus it would just get me another headache to get my currently open projects to different platform. However once new "baby" arrive it will be converted ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Finally something positive Ken, I was seriously tired of most topics unix vs windows, best unix gadget etc.

Did they improved support of graphic cards? Are wireless cards easier recognised or installed?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You cannot throw exception on class. You can make class throw exception with use of try catch block (often followed by finally)

Scanner inFile;
    try{
        inFile = new Scanner(new FileReader(infile));
    }
    catch(FileNotFoundException e){
        e.printStackTrace();
    }

or directly from method

public Scanner getBook() throws FileNotFoundException{}

but then you will need to catch possible exception on the receiving which is supposed to receive Scanner object back from getBook() method.

So remove exception from class header and handle it by one of the above ways.

PS: Also I'm not sure what you trying to do on line 17&18. Are these just some de-relics from past or are they have so other purpose?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm just gone give you example how this work with little different topic

public class Employee {
	
	private int empNum;
	private String firstName;
	private String lastName;
	private String department;

    public Employee(int empNum, String firstName, String lastName, String department) {
    	setEmployeeNumber(empNum);
    	setFirstName(firstName);
    	setLastName(lastName);
    	setDepartment(department);
    }
    
    private void setEmployeeNumber(int empNum){ this.empNum = empNum; }
    public int getEmployeeNumber(){ return empNum;}
    
    private void setFirstName(String firstName){ this.firstName = firstName;}
    public String getFirstName(){ return firstName;}
    
    private void setLastName(String lastName){ this.lastName = lastName;}
    public String getLastName(){ return lastName;}
    
    private void setDepartment(String department){ this.department = department;}
    public String getDepartment(){ return department;}
    
    public void employeeToString(){
    	System.out.printf("%05d\t %s\t\t %s\t\t %s\n", 
    		getEmployeeNumber(), getFirstName(), getLastName(), getDepartment());
    }
}
public class EmployeeTest {

    public static void main(String[] args){
    	Employee[] e = new Employee[3];
    	e[0] = new Employee(123, "Mickey", "Mouse", "IT support");
    	e[1] = new Employee(234, "Scrooge", "McDuck", "Finance");
    	e[2] = new Employee(345, "Donald", "Duck", "Research");
    	
    	for(Employee emp :e){
    		emp.employeeToString();
    	}
    }    
}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

tanks , i found probleam with useing this example

And what is the problem? You need to explain as it is working without any problems on my side...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

please send some Source code for online examination in Jsp

Sorry this is not how this forum works "just send me code and I do not care to learn anything".
Rule #1: We only give homework help to those who show effort

So now if you wish to receive any help, create new thread, start working on the task and ask specific question.

Thread closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Copy and paste mistake LOL.
This is from your other class remove it

{
    // main method begins execution of Java application
    public static void main (String args[])
    {
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please quickly edit your post and use code tags to show code properly

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You haven't been careful with construction of output string, plus there is one use of wrong variable name. Corrected program here

import java.io.*;
import java.text.*;

public class Program08
{
    public static void main (String args[])
    throws java.io.IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        DecimalFormat roundMyDecimal=new DecimalFormat("0.00");

        float amount;
        float principal;
        float interest;
        float compounds;
        float years;

        System.out.print("Enter the principal: "); // inputs principal.
        principal=Float.parseFloat(br.readLine());

        System.out.print("Enter the number of years: "); // inputs years.
        years=Float.parseFloat(br.readLine());

        System.out.print("Enter the number of times compounded: "); // inputs number of compounds in a year.
        compounds=Float.parseFloat(br.readLine());

        System.out.print("Enter the interest rate: "); // inputs interest rate.
        interest=Float.parseFloat(br.readLine());

        /*used wrong variable name amt*/amount=principal*(float)Math.pow(1+interest,years);

        System.out.print("\nSaving $" + principal + /*missing plus*/" for " 
            + years  + /*missing plus*/" years at " + roundMyDecimal.format (interest)  + /*missing plus*/" interest compounded " 
            + compounds  + /*missing plus*/" times a year will result in $" + amount);
    }
} 

PS: When you next time provide some code please wrap it in code tags. Click on code button on menu, this will place code tags for you in editing area and then all you have do is place your code between these tags.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have no idea what I'm looking for as I do not see any use of outFile.print(); or PrintWriter outFile = new PrintWriter(outfile); However what I see here is intentionally another problem

public class Address
{
	//Declare variables
	String street;
	String city;
	String state;
	String zip;
	String phone;
	static Scanner console = new Scanner(System.in);

	//Constructor
		public Address(String st, String ct, String sta, String zp)
		{
			String street = st;
			String city = ct;
			String state = sta;
			String zip = zp;
		}
		Address()
		{
		}

Even though you declare global variables street, city, state, zip these are never initialized because you create another identical set inside your constructor. This is called shadowing and it happens when you redeclare a variable that’s already been declared somewhere else. The effect of Shadowing is to hide the previously declared variable in such a way that it may look as though you’re using the hidden variable, but you’re actually using the shadowing variable.
So the above should be corrected either by removing type declarations inside constructor or use of setter methods

public class Address
{
	//Declare variables
	String street;
	String city;
	String state;
	String zip;
	String phone;
	static Scanner console = new Scanner(System.in);

	//Constructor
		public Address(String st, String ct, String sta, String zp)
		{
			street = st;
			city = ct;
			state = sta;
			zip = zp;
		}

		Address()
		{
		}
public class Address
{
	//Declare variables
	String street;
	String city;
	String state;
	String zip;
	String phone;
	static Scanner console = …
BestJewSinceJC commented: good response +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

For start would be good to know which programming language we are talking....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i have a little knowledge abt jsp bt nt abt database connectivity.................so i just want to knw the details of the database connectivity its step nd codes.

Top of this section is thread JSP database connectivity according to Model View Controller (MVC) Model 2 that provide general idea how connection to database in Java web development should be treated. Also as already provided there is a link to Java Server Pages book and I can also recommend Head First Servlets & JSP

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can find working example of JME splash screen here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is simple example of static image to be displayed as logo on the start-up/splash screen.
This can be improved by creating animation out of series of images or use of flash file through Project Capuchin library.
As for location of image file this was placed in new folder called "res" as resources. The folder is on same level as "myProject" folder that holds Java classes. If you decide to have "res" folder placed inside "myProject" folder then image path will be /myProject/res/IMAGE_NAME ProjectMIDlet.java

package myProject;

/**
 * Created by IntelliJ IDEA.
 * User: Peter
 * URL: [url]http://www.peterscorner.co.uk[/url]
 * Date: 02-Oct-2009
 * Time: 17:40:55
 */

import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.Display;

import myProject.screens.SplashScreen;

public class ProjectMIDlet extends MIDlet{

    public String ti;
    public String entrydate;
    public String result;

    private Display display;


    public ProjectMIDlet() {}

    public void startApp() {
        if(display == null){
            display = Display.getDisplay(this);
        }
        display.setCurrent(new SplashScreen(this));

    }

    public void pauseApp() {}

    public void destroyApp(boolean unconditional) {}

}

NextScreen.java

package myProject.screens;

/**
 * Created by IntelliJ IDEA.
 * User: Peter
 * URL: [url]http://www.peterscorner.co.uk[/url]
 * Date: 02-Oct-2009
 * Time: 17:56:08
 */
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

import myProject.ProjectMIDlet;

public class NextScreen extends Form implements CommandListener{

    private ProjectMIDlet projectMidlet;

    public NextScreen(ProjectMIDlet projectMidlet){
        super("Next Screen");
        this.projectMidlet = projectMidlet;
        init();
    }

    private void init(){
        StringItem si = new StringItem(null, "Next Screen");
        append(si);
    }

    public void commandAction(Command c, Displayable d){}
}
majestic0110 commented: Great :) Nice snippet! +6
jasimp commented: Dani would be proud, you tagged it wonderfully :) +12
justM commented: Helped me twice on this +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you have installed any Java server container (Tomcat, JBoss, GlassFish etc.) on your pc? If you do where do you place your applet in this environment?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I guess it it time to use my time tracking moderator option and close this thread before more future time travellers decides to advertise their time trackers...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You are not paying attention to your tags formatting, if they have all double quotes as need it, if the tag is correctly closed and if they are in right order

<html>
<head>
<title></title>
</head>
<body>
  <form name="frm_details" method="post" action="mailto:someone@hotmail.com"> 
     <table border="1" width = "100%">
      <tr>
        <td>Name</td>
        <td><input type="text" name="name" size="30"/></td>
        <td>ID</td>
        <td><input type="text" name="Id" size="25"/></td>
      </tr>
      <tr>
        <td>Password</td>
        <td><input type="text" name="password" size="30"/></td>
        <td>Address</td>
        <td><textarea cols="30" rows="2" name="address"/></textarea></td>
      </tr>
        <td>Sex</td>
        <td><input type="radio" name="sex" value="male"/>Male
            <input type="radio" name="sex" value="female"/>Female 
        </td>
        <td>Marital Status</td>
        <td><select name="marital status" size="1">
            <option value="Single">Single</option>
            <option value="Married">Married</option>
            <option value="Divorced">Divorced</option>
            </select>
        </td>      
     </tr>
     <tr>
       <td>Phone</td>
       <td></td>
       <td>email</td>
       <td><input type="text" name="email" size="30"/></td>
     </tr>
    </table>
    </form>
</body>
</html>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Tags which do not have pair close tags should have back slash on the end of their declaration, which all of yours input tags are missing
  2. Input for ID is missing double quote after size declaration
<html>
<head>
<title></title>
</head>
<body>
  <form name="frm_details" method="post" action="mailto:someone@hotmail.com"> 
     <table border="1">
      <tr>
        <td>Name</td>
        <td><input type="text" name="name" size="30" /></td>
        <td>ID</td>
        <td><input type="text" name="Id" size="25"/></td>
      </tr>
      <tr>
        <td>Password</td>
        <td><input type="text" name="password" size="30"/></td>
        <td>Address</td>
        <td><textarea cols="30" rows="2" name="address"/></td>
      </tr>
        <td>Sex</td>
        <td><input type="radio" name="sex" value="male"/>Male
            <input type="radio" name="sex" value="female"/>Female 
        </td>
      </tr>
    </table>
    </form>
</body>
</html>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No offence, but looking on your posting history I'm not sure if you actually posted in correct section.
Are you sure you talking about Java as programming language by Sun Microsystems or you wanted to ask about JavaScript as scripting language mainly used for web development.

Either way more explanation need it in regards what you did so far...

PS: If this is in wrong section you better to hit "Flag Bad Post" option and request to move it in right section, before you get slag from others

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Welcome back dude

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Depending on requirements given to you, but mostly no as the list of the variables would make it too long.
However I know a professor at university that demanded all variables to be listed too...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would like to know if people would be interested in participating building similar starting thread like we have in Java section Starting "Java" [Java tutorials / resources / faq], but targeting Java web development.

This thread would hold resources (where to get the things, configurations, basic usage and any tips&tricks) in regards of servers (Tomcat, GlassFish, JBoss, and others), databases (Oracle, MySQL, PostgreSQL, HSQLDB, and others) and available web technologies(servlets, Java Server Pages, Java Server Faces, JavaServer Pages Standard Tag Library and others).

Additional comments are welcome.

kvprajapati commented: Good suggestion. +18
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

JTextField also doesn't let you set content type (unlike TextField in Java Microedition).

Use JFormattedTextField as James suggested. You will find it in NetBeans in Palette>> Swing Controls >> FormattedField. And to set content type in Properties look for formatterFactory and use drop down menu

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Good suggestion James, there is of course one in NetBeans.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Am I missing something here? :-/

However you will not able to set content type like NUMBER, ANY, EMAIL. For that you will need add on library