我正在制作我的第一个程序 in Java ,这将是一个简单的文本编辑器。 好吧,我有一个JPanel,我想在其中添加一个JTextArea。但是JTextArea适合所有的JPanel,所以我不能在我的JPanel中添加任何其他类似Button的东西。 我试图调整我的JTextArea的大小,但没有任何反应..
我使用的代码:
TextArea text = new TextArea();
text.setSize(300, 200);
JFrame.add(text);
答案 0 :(得分:0)
function getStatusCode($url) {
$headers = get_headers($url);
preg_match('/\s(\d+)\s/', $headers[0], $matches);
return $matches[0];
}
echo getStatusCode('http://www.google.com');