Re: Problem in displaying swing components on ARM, using GNU Classpath and Cacao
To make the swing components visible, Does I have to keep any specific libraries on path or I have to set any environment variables or provide runtime parameters ? Thanks in Adavance. Hi! Are you trying to display a swing widget on top of an awt one? What swing peer are you running? Does your program works correctly with the same version of GNU Classpath on a x86 Linux machine? Cheers, Mario Hi Mario, Thanks for the reply. In both cases swing widget on swing(JFrame) or swing on awt - swing widjets like (labels, textfields, buttons,..) are not visible, but window is visible. I build the gnuclasspath using default options, so the awt-peer is Gtk. The program is working fine under x86 Linux machine with the same version of GNU Classpath. The simple swing program I am using is: import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import javax.swing.JFrame; import javax.swing.JLabel; public class SimpleLabel { public static void main(String[] args) { JFrame frame = new JFrame(SImpleLabel); frame.setTitle(JLabel Test); frame.setLayout(new FlowLayout()); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel label = new JLabel(First Name); label.setFont(new Font(Courier New, Font.ITALIC, 20)); label.setForeground(Color.RED); System.out.println(label name:+label.getText()); System.out.println(UI:+label.getUI()); System.out.println(Toolkit:+label.getToolkit()); frame.add(label); frame.setSize(500,500); frame.setVisible(true); } } Output: label name:First Name UI:[EMAIL PROTECTED] Toolkit:[EMAIL PROTECTED] Thanks Regards MVN Pavankumar
Problem in displaying swing components on ARM, using GNU Classpath and Cacao
Hi, We have a requirement of JVM on ARM Processor and Linux version-2.6. I have cross compiled the GNU Classpath(0.97.2) libs (using default options)and Cacao VM(0.99.2) and required libraries and ported. I am able to succesfully execute all simple programs and AWT programs. But when I am trying to execute a program containing swing components, the window is appearing - but the swing components(labels, buttons, text fields) are not visible. Some how if I have clicked on a button (random clicking), the action on that button is performing. To make the swing components visible,I have to keep any specific libraries on path? Thanks MVN PavanKumar /*modify anchor tag if href=mailto to open a webmailer window for writing mails*/ var anchor = document.getElementsByTagName(a); var aux ='|'; var r = mailto:([^ \']+); var regexformailto = new RegExp(r,i); var link_replacer = document.getElementById('link_replacer').childNodes[0].getAttribute(href); for(i=0;i 0){ //set new href aux = link_replacer.replace(__address__,match[1]); aux = aux.replace(/mailContent/g,mailDetail); //set href var inHTML = anchor[i].innerHTML; anchor[i].setAttribute(href,aux); anchor[i].innerHTML = inHTML; //set onclick aux = document.getElementById('link_replacer').childNodes[0].getAttribute(onclick); anchor[i].setAttribute(onclick,aux); anchor[i].onclick = aux; } } Thanks MVN Pavankumar Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/