Click here to Skip to main content
16,004,919 members
Home / Discussions / Java
   

Java

 
GeneralRe: Huffman coding in Java Script Encoding Decoding Pin
MikeMarq19-Apr-09 8:20
MikeMarq19-Apr-09 8:20 
GeneralRe: Huffman coding in Java Script Encoding Decoding Pin
novhard19-Apr-09 18:39
novhard19-Apr-09 18:39 
GeneralRe: Huffman coding in Java Script Encoding Decoding [modified] Pin
MikeMarq20-Apr-09 6:37
MikeMarq20-Apr-09 6:37 
GeneralThe code Pin
MikeMarq20-Apr-09 6:41
MikeMarq20-Apr-09 6:41 
GeneralThe encripted file Pin
MikeMarq20-Apr-09 6:43
MikeMarq20-Apr-09 6:43 
GeneralSymbol Frequencies Pin
MikeMarq20-Apr-09 6:44
MikeMarq20-Apr-09 6:44 
GeneralRe: Huffman coding in Java Script Encoding Decoding Pin
novhard21-Apr-09 18:53
novhard21-Apr-09 18:53 
QuestionDisplaying Text on a JFrame Pin
MikeMarq18-Apr-09 11:22
MikeMarq18-Apr-09 11:22 
I'm trying to display text in the shape of a cross on a JFrame using 4 JTextAreas but when I do all of the JTextAreas display correctly except the last one which ends up in the upper left corner. It is always the last item that ends up in the wrong spot. For instance I tried creating the west one first and it was then fine but then south became wrong. Here's the display code thanks in advance for your help.

Mike


JFrame frame = new JFrame();


//north
jtextnorth = new JTextArea ("North" + '\n' + party[0] + '\n');
jtextnorth.setLocation(150, 0);
jtextnorth.setSize(100,100);
frame.add(jtextnorth);

//east
jtexteast = new JTextArea ("East" + '\n' + party[1] + '\n');
jtexteast.setLocation(300, 150);
jtexteast.setSize(100,100);
frame.add(jtexteast);

//south
jtextsouth = new JTextArea ("South" + '\n' + party[2] + '\n');
jtextsouth.setLocation(150, 300);
jtextsouth.setSize(100,100);
frame.add(jtextsouth);

//west
jtextwest = new JTextArea ("West" + '\n' + party[3] + '\n');
jtextwest.setLocation(25, 150);
jtextwest.setSize(100,100);
frame.add(jtextwest);


frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400,400);
frame.setVisible(true);

QuestionHow to display Time for an Online Test Pin
kaushal kishore sharma16-Apr-09 19:31
kaushal kishore sharma16-Apr-09 19:31 
QuestionJava Video Player Pin
Flying_Doc16-Apr-09 16:00
Flying_Doc16-Apr-09 16:00 
AnswerRe: Java Video Player Pin
vctrlao23-Apr-09 20:39
vctrlao23-Apr-09 20:39 
QuestionHow to log into a web site with a certificate. Pin
werpa13-Apr-09 11:03
werpa13-Apr-09 11:03 
Questiongetting text from radio button Pin
Vishnu Prem12-Apr-09 20:12
Vishnu Prem12-Apr-09 20:12 
AnswerRe: getting text from radio button Pin
vctrlao23-Apr-09 20:41
vctrlao23-Apr-09 20:41 
QuestionHow can i get special folder icon ? Pin
anbluemoon12-Apr-09 1:44
anbluemoon12-Apr-09 1:44 
AnswerRe: How can i get special folder icon ? Pin
fly90412-Apr-09 5:02
fly90412-Apr-09 5:02 
Question[Message Deleted] Pin
kaushal kishore sharma10-Apr-09 0:01
kaushal kishore sharma10-Apr-09 0:01 
AnswerRe: making Proxy server by using Java Pin
Nagy Vilmos11-Apr-09 0:40
professionalNagy Vilmos11-Apr-09 0:40 
QuestionUrdu input in java or Vb6 Pin
atiyakhan9-Apr-09 23:16
atiyakhan9-Apr-09 23:16 
QuestionHow to append data to na excel file using java or jsp or struts? Pin
kaushal kishore sharma9-Apr-09 19:59
kaushal kishore sharma9-Apr-09 19:59 
Questiondid the ide like vs are avail for java and jsp too? [modified] Drop Down feature in java n jsp????? Pin
Alok Sharma ji9-Apr-09 6:52
Alok Sharma ji9-Apr-09 6:52 
AnswerRe: did the ide like vs are avail for java and jsp too? Pin
scottgp9-Apr-09 7:28
professionalscottgp9-Apr-09 7:28 
GeneralRe: did the ide like vs are avail for java and jsp too? Pin
Alok Sharma ji9-Apr-09 8:15
Alok Sharma ji9-Apr-09 8:15 
QuestionTag libraries with Struts to upload multiple files Pin
Pav19778-Apr-09 5:17
Pav19778-Apr-09 5:17 
AnswerRe: Tag libraries with Struts to upload multiple files Pin
Pav19778-Apr-09 5:55
Pav19778-Apr-09 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.