User Profile

Collapse

Profile Sidebar

Collapse
kummu4help
kummu4help
Last Activity: May 19 '09, 10:27 AM
Joined: Nov 18 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hi
    i modified my code as follows.
    but now the rectangle is visible on the applet only after i release my mouse. but now i am able to draw multiple rectangles. the only problem is i can not see the rectangle while dragging the mouse.
    Code:
    import java.applet.*;
    import java.awt.*;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.event.MouseEvent;
    ...
    See more | Go to post

    Leave a comment:


  • how to draw rectangle on applet based on mousedrageven

    hi,
    i want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates.
    i have the following code.

    in the following code i am using SelectionArea class which extends a canvas on which i am performing drawing operation. i am using image variable in this class for double buffering to reduce flickering and to save the...
    See more | Go to post

  • kummu4help
    started a topic how to get count from 3 different tables

    how to get count from 3 different tables

    hi,
    i am using mysql. i have 3 tables with following structures. these are not actual tables i am working on.

    table A
    id varchar(16),nam e varchar(255),In Date datetime

    table B
    id varchar(16),nam e varchar(255),In Date datetime

    table C
    id varchar(16),nam e varchar(255),In Date datetime

    what i want to do is obtain no of rows from each table that satisfies the following...
    See more | Go to post

  • kummu4help
    started a topic how to change color of option tag in select

    how to change color of option tag in select

    can i use like this
    Code:
    <select name="test" >
    <option value="1">option</option>
    <option value="2"><p style="background-color:#FF0055;">again</p></option>
    </select>
    i don't want to use style in the option tag.
    because i am getting the option text from database.
    so i want to apply style to the...
    See more | Go to post

  • kummu4help
    started a topic how to convert mysql null as 0 in php
    in PHP

    how to convert mysql null as 0 in php

    hi,
    i am executing a query in php.
    the query returns a result set which may contain NULL for some of the columns

    i want to display this result set as a table.

    when a column has null value i want to display it as 0

    here i am not allowed to use any conditional statement.

    so is there any built in function either in php or mysql that solves my problem

    thanks for...
    See more | Go to post

  • kummu4help
    started a topic what happens to form data if we destroy session
    in PHP

    what happens to form data if we destroy session

    Hi,
    i am posting data from a.php to b.php;
    a.php is something like this
    Code:
    <html>
    <head>
    <body>
    <form method="post" action="b.php">
    </form>
    </body>
    </html>
    b.php is something like this
    Code:
    <?
    session_start();
    session_destroy();
    //i will get data here using  $_post functions
    ?>
    ...
    See more | Go to post

  • kummu4help
    replied to free hosting sites
    Thanks numberwhun,
    but they are not supporting java
    See more | Go to post

    Leave a comment:


  • kummu4help
    started a topic free hosting sites

    free hosting sites

    Hi
    can any one tell me about free hosting sites that offer support to java
    i have an ad free account in x10Hosting | Home
    but it supports only php.

    i want to know free hosting sites for java without ads.

    also i would like to know about any free hosting sites other than x10hosting.com that offer adfree account
    See more | Go to post

  • Hi acoder,
    the following regex was working fine for me in javascript.
    i forgot to place the $ sign at the end



    now i want to improve this so that it can work for caseinsensitive also.
    but i don't know where to put the i (case insensitive) in the above regex
    can u help me please.......
    See more | Go to post

    Leave a comment:


  • convert php regex to javascript regex

    Hi
    i have the following regex in php and it's working fine for me
    Code:
    if(false===(preg_match("/^(?=.*\d)(?=.*[a-z]).{6,8}$/", $sInput) > 0))
    {
    return false;
    }
    but i want to use the same regex in javascript for the sake of client side validation
    can anyone tell how i can use the same regex in java script
    the regex should test the following...
    See more | Go to post
    Last edited by acoder; Dec 1 '08, 02:04 PM. Reason: changed quote to code tags

    Leave a comment:


  • now i am trying with the following
    Code:
        if(false===(preg_match("/^(?=.*\d)(?=.*[a-z]).{6,8}$/", $sInput) > 0))
    	{
    		return false;
    	}
    it's working fine.
    but i want to use the same expression in javascript also for client side validation

    can any one tell me how i can use the same regular expression in javascript.
    i am trying with following but it's not working
    Code:
    	var regex=/\(?=.*\d\)\(?=.*[a-z]\).{6,8}/;
    ...
    See more | Go to post

    Leave a comment:


  • at present i am trying with the following code

    can anyone improve it to suite my requirements which i specified above...
    See more | Go to post

    Leave a comment:


  • regex for password validation - convert PHP regex to JavaScript regex

    can anyone give me a regex to validate the password with following conditions



    hope i am clear.
    i tried with ctype_alnum() function in php but it is accepting if all characters or either alphabet or digit. but i want to enforce atleast one alphabet and one digit should be in password

    can any one give me a regex for this pls........
    See more | Go to post

  • need to display error msg in a divtag under tr tag

    Hi,
    i have a following form.
    Code:
    	<form id="frm_signup">
    	<b>please fill the following registration form.All the fields are compulsory</b><br/><br/>
    		
    		<table border="0" cellpadding="" cellspacing="" id="register-table"> 
    		
    		<tr> 
    		<td >Username</td><td>:<span style="color:#FF0066">*</span></td>
    ...
    See more | Go to post
No activity results to display
Show More
Working...