Rajasree R

Greenhorn
+ Follow
since May 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajasree R

hi,
Can anybody provide the source code for a custom DataSource for RTP.

I would like to know if there is any open source code for RTP/RTCP API on J2ME.

thanks& regards
Rajasree
17 years ago
Hi
Thx for the reply.But what I dnt know is how to set /adjust the volume.I know how to use the slider.Sorry,my question was not clear.
Thanks
Rajasree
17 years ago
Hi,
How can I use control the volume using a JSlider?

Thanks in advance
Rajasree
17 years ago
Hi,
In the link suggested by Mr.Steve Morrow
http://java.sun.com/features/2002/09/pword_mask.html the examples are like that.
But in that case also when I run it from eclipse its printing the prompt continuously,though it wont close the eclispe window as in the previous program(PwdConsole)

In commoand prompt all these are working fine.Any solution?
Regards
Rajasree
18 years ago
Hi,
Thank you very much.
But I have a small problem.If I am running the example programs from the command prompt its working fine.But when I am running from eclipse its printingn the prompt continuously.
One another similar program which I got is here.
If I run this from eclise and enter any key in console the eclipse window will get closed.Why is it so?
The code is here:

import java.io.*;
import java.awt.*;

public class PwdConsole {
public static void main(String[] args) throws Exception {
ConsoleEraser consoleEraser = new ConsoleEraser();
System.out.print("Password? ");
BufferedReader stdin = new BufferedReader(new InputStreamReader(
System.in));
consoleEraser.start();
String pass = stdin.readLine();
consoleEraser.halt();
System.out.print("\b");
System.out.println("Password: '" + pass + "'");
}
}

class ConsoleEraser extends Thread {
private boolean running = true;

public void run() {
while (running) {
System.out.print("\b ");

}
}

public synchronized void halt() {
running = false;
}
}




Regards
Rajasree
18 years ago
Hi all,
I need to accept a password from console using streams.but the password characters should be displayed as * or space.How is it possible?

Regards
Rajasree
18 years ago
Hi all,
can anybody suggest which is best way to do IP validation in a text field.
Using JFormattedTextField I can validate only the pattern,not the range of numbers,as of I know.

Regards
Rajasree
18 years ago
Hi,
My problem is not that.Restict the SIZE OF TEXTFIELD.not the number of characters in that..ie,the size(display) of textfield should be resticted accoring to the number of characters..
18 years ago
Hi,
I want to have a textfield which accepts limited number of characters.This can be done using JFormattedTextField.But how can I restict the size of the textfield to accept only that many characters.
18 years ago
Hi,
Sorry..i dont want to use a spinner.I want the field to have the look of a normal textfield..Any other option for this?
18 years ago
Hi,
Thank you for the response.
What can I do if i need to set a minimum and maximum value for the text field.When I use textfield's document object i used to check it there in insertString method.Is there a better way for this?
Thank u in advance
Rajasree
18 years ago
To validate an integer text field ,which of these two methods are better?
1.
protected void processComponentKeyEvent(KeyEvent ke) {
if(ke.getKeyCode() == KeyEvent.VK_DELETE ||
ke.getKeyCode() == KeyEvent.VK_BACK_SPACE ||
ke.getKeyCode() == KeyEvent.VK_UP ||
ke.getKeyCode() == KeyEvent.VK_DOWN ||
ke.getKeyCode() == KeyEvent.VK_LEFT ||
ke.getKeyCode() == KeyEvent.VK_RIGHT)
super.processComponentKeyEvent(ke);
char c = ke.getKeyChar();
if(!((c >= '0' && c <= '9') || (c == '-'))) {
ke.consume();
} else {
super.processComponentKeyEvent(ke);
}
}


2.Creating a document object extending from PlainDocument of textfield?
18 years ago