AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

????? instead of cyrilic letters

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Victor Lukoshkin
Guest





PostPosted: Fri Nov 26, 2004 2:04 am    Post subject: ????? instead of cyrilic letters Reply with quote



Hi.

I see only ?????? on my button.
In the text of program:
button1.setLabel("u041au043du043eu043fu043au0430");
Same text in command line:
System.out.println("u041au043du043eu043fu043au0430");
looks good.
Help me please.

Victor Lukoshkin.
Back to top
Victor Lukoshkin
Guest





PostPosted: Sat Nov 27, 2004 12:50 am    Post subject: Re: ????? instead of cyrilic letters Reply with quote



Quote:
What type of button is that?
public class First extends java.awt.Frame {

public First() { initComponents(); }
private void initComponents() {
panel1 = new java.awt.Panel();
button1 = new java.awt.Button();
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt)
{
exitForm(evt);
}
});
button1.setLabel("u041au043du043eu043fu043au0430");
panel1.add(button1);
add(panel1, java.awt.BorderLayout.CENTER);
pack();
}
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0); }
public static void main(String args[]) { new
First().show(); }
private java.awt.Button button1;
private java.awt.Panel panel1;
}

Quote:
Does Java have accesss to the right fonts?
How to know it? English letters I see without problem. So u0065 I see

as "e".

Quote:
What is your default encoding?
KOI8_R I think but I'm not sure.


Back to top
Andrew Thompson
Guest





PostPosted: Sat Nov 27, 2004 3:25 am    Post subject: Re: ????? instead of cyrilic letters Reply with quote



On 26 Nov 2004 16:50:14 -0800, Victor Lukoshkin wrote:

Quote:
What type of button is that?
public class First extends java.awt.Frame {

Try this altered example..
<sscce>
public class First extends java.awt.Frame {

private javax.swing.JButton button1;
private java.awt.Panel panel1;

public First() {
initComponents();
}

private void initComponents() {
panel1 = new java.awt.Panel();
button1 = new javax.swing.JButton(
"u041au043du043eu043fu043au0430");
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
}
});
panel1.add(button1);
add(panel1, java.awt.BorderLayout.CENTER);
pack();
}

private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
}

public static void main(String args[]) {
new First().setVisible(true);
}
}
</sscce>

And while on the subject of examples, please put blank lines in them.
Your example was quite hard for me to understand until I'd reformatted it.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane

Back to top
Victor Lukoshkin
Guest





PostPosted: Sun Nov 28, 2004 1:23 am    Post subject: Re: ????? instead of cyrilic letters Reply with quote

Andrew Thompson <SeeMySites (AT) www (DOT) invalid> wrote

Quote:
On 26 Nov 2004 16:50:14 -0800, Victor Lukoshkin wrote:

What type of button is that?
public class First extends java.awt.Frame {

Try this altered example..
sscce
It works! Thank you.


Quote:
And while on the subject of examples, please put blank lines in them.

Ok. Thank you again.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.