0
amharic言語を読むためにこのコードを修正するには?Amharic文字を読み取るためのSwing GUIエンコーディング
import java.awt.FlowLayout;
import javax.swing.JButton;`
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class Gui {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> new Gui().start());
}
public void start() {
JFrame frame = new JFrame(" አማረኛ ");
JButton btn = new JButton(" ስላም ");
JButton btn2 = new JButton(" ሃይ");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(new FlowLayout(FlowLayout.LEFT));
frame.getContentPane().add(btn);
frame.getContentPane().add(btn2);
frame.setSize(250, 220);
frame.setVisible(true);
}
}
表示しようとしている文字セットをサポートしているルックアンドフィールズフォントに変更する必要があるかもしれません。 – MadProgrammer