Krishnamurthy Dara

Greenhorn
+ Follow
since Jul 27, 2006
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 Krishnamurthy Dara

Hi All,

I am using applets1.1. While invoking a dialog from panel, The dialog is opens with the Parent header(On title bar) Icon.
But If I put dialog.setResizable(false); The Icon is not displaying on the dialog header(On title bar).

If I am not using setResizable(false) and using setResizable(true), Its working fine.

My requirement needs the Icon should be retain on the dialog title bar and dialog should not be resizable.

Advance Thanks all,
Krishna
17 years ago
Hi All,

I am using jdk1.1 version. What is the equal method in jdk1.1 for
MouseEvent.getButton(). To catch the right click on the screen.

Thanks,
krishna
17 years ago
Hi All,

In applets, I have one TextArea.In that I need to override the Tab key functionality with select all content in that text area.

If you press the tab it should select all the content which text area has.

Here I add keylistener to textarea, I am writing like this

public void keyReleased(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_TAB) {
textArea.selectAll();
}
}
Then KeyTyped and KeyPressed I didnot write any thing. Here I am getting selection for all content but, in second tab hit the content is replace with empty value.

How to overcome this issue..

Regards,
Krishna
17 years ago
Thank you very much Campbell and Paul for your reply. Hope there is no much difference in Perfomance also..
17 years ago
Hi All,

I am developing a screen in applets which contains 5 Buttons. I need to handle all buttons action events. For this I have two choices to do.

1.Adding action listeners to all buttons and handling the events in single method called
public void actionPerformed(ActionEvent actionEvent) {} with five if else condition checking.

2.I can write actionPerfomed method for each and every button by using ActionListener() Anonymous Class.
eg: sendButton.addActionListener(new ActionListener(){

public void actionPerformed(ActionEvent e) {
submit();
}
});

Please suggest me which one is better in terms of different prospects like performance and coding standards......
17 years ago
Hi All,

I am developing a screen in applets which contains 5 Buttons. I need to handle all buttons action events. For this I have two choices to do.

1.Adding action listeners to all buttons and handling the events in single method called
public void actionPerformed(ActionEvent actionEvent) {} with five if else condition checking.

2.I can write actionPerfomed method for each and every button by using ActionListener() Anonymous Class.
eg: sendButton.addActionListener(new ActionListener(){

public void actionPerformed(ActionEvent e) {
submit();
}
});

Please suggest me which one is better in terms of different prospects like performance and coding standards......
Congratulations Prasad!! All the very best for next two parts.