The constructor URL(String String) is undefined
btn.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEvente){try...
btn.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
try
{
getAppletContext().showDocument(
new URL("http://163.com","_blank")
);
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
});
谁能给 个正确的URL定义 展开
{
public void actionPerformed(ActionEvent e)
{
try
{
getAppletContext().showDocument(
new URL("http://163.com","_blank")
);
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
});
谁能给 个正确的URL定义 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询