我如何制作带有多个网站标签的网络浏览器应用程序?我无法在线找到任何参考或示例来证明这一点。我非常感谢任何帮助!
答案 0 :(得分:0)
Here's有关如何创建浏览器的教程。但是,它是一个单选项卡浏览器。要使其成为多个选项卡,您可以创建一个新的UIView
,每次用户单击新选项卡时,该public class KeyListener implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
//Get the name of the ActionEvent
String cmd = e.getActionCommand();
//Here the Actionevent is only checked to see if it is a "Clear" or not
//If you need to impliment more then a switch statment may be appropriate
if(cmd.equals("Clear")) {
//Clear Label with additional setter method
PhonePanel.clearLabel();
}
else {
PhonePanel.addToOutputLabel(e.getActionCommand());
}
}
具有单页浏览器的所有功能。您可以使用段控件(或可以设计为类似选项卡的集合视图)以在不同视图之间切换。