Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
java x 19
chat x 4
Member Avatar for topest1

Hi all, I have extended JButton to myButton this is my constructor [CODE]myButton(String text,char key){ this(text); this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(Character.toUpperCase(key)),"Action"); this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(Character.toLowerCase(key)),"Action"); this.getActionMap().put("Action",action); this.setMnemonic((int) Character.toUpperCase(key)); }[/CODE] I m using single key shortcut for the myButton and i am using setToolTipText(String) But when i hover it shows me like this "Move Tool Unknown KeyCode: 0x0" …

1
67
Member Avatar for topest1

Hello all, I m a newbie in java, I m writing code to change the text of the JLabel on the mouse over to the JButton I m facing some problem in Updating [B]Initial Label:[/B] [ATTACH]12891[/ATTACH] [B]After setText:[/B] [ATTACH]12892[/ATTACH] label.setText(); It doesn't update properly New text gets overwritten on old …

Member Avatar for topest1
0
560
Member Avatar for shashikant.v

hi friends when i am running my programe on cmd in C:\Programe File\jdk1.6.0_14\bin I got the message that file name.java uses or overrides a deprecated API . Recompile with -Xlint: deprecation for details . what it meant how it will solved . please help me thanks in advance for reply …

Member Avatar for masijade
0
198
Member Avatar for topest1

Hello All, I am developing Chat Application, But facing a problem in displaying Chat text [CODE] public void appendText(String text) { displayChats.replaceSelection("\n"+text); displayChats.setCaretPosition(displayChats.getDocument().getLength()); //Scroll to bottom } [/CODE] Works fine while i append the text to JEditorPane(displayChats). But when I use setEditable(false); (so that user cannot edit it). then I …

0
96
Member Avatar for topest1

Hello all, I am developing chat application(not applet) in java, I want it to be able to run over internet I have tried it in LAN with Socket programming I found something [URL="http://javaeye.wordpress.com/2008/05/04/clientserver-communication-using-tcp-sockets/"]here[/URL] It is working fine But how can i run it over internet:?: :confused: If i [COLOR="Red"]tcpserver.java[/COLOR](or tcpserver.class) …

Member Avatar for topest1
0
181
Member Avatar for topest1

Hello, I am beginner in Java we are going to develop a chat application But I don't know how to implement the network connectivity..././../ :confused: I googled, and I came to know something like Socket Programming.... Actually I don't know how the chat application works I want to store the …

0
83