我是Java中使用Look and Feels的新手.我试图将Seaglass的外观和感觉添加到我正在处理的java应用程序中,但我似乎无法弄清楚如何使用它.我发现其他人使用它并且也有问题,尽管他们说已经修复了.
这是我的Java代码(我正在使用Netbeans 8.1 Beta):
package pamsorganizer;
import javax.swing.*;
import java.awt.*;
import javax.swing.UIManager;
public class MainProgram extends JFrame {
/**
* Creates the Main Form for the General Program
*/
public MainProgram() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() …Run Code Online (Sandbox Code Playgroud) 我正在尝试建立一个包含会员部分的网站.要在成员部分注册,您必须已在数据库中.您将获得用户名和密码,然后在注册时可以输入您的电子邮件,地址和密码.
所以我的问题是,当我知道我输入正确的信息时,我收到一个错误,说用户名或reg_id不正确.
else {
mysql_close($con);
header("location: index.php?signup&error-msg=Incorrect Username or Registration ID.");
}
Run Code Online (Sandbox Code Playgroud)
这是我的登录表格:
<form action="function.php?signup" method="post">
<table cellspacing="20" class="span12">
<tr>
<td>
<input type="text" name="name" placeholder="Full Name">
</td>
</tr>
<tr>
<td>
<input type="email" name="email" placeholder="Email">
</td>
</tr>
<tr>
<td>
<input type="text" name="address" placeholder="Address">
</td>
</tr>
<tr>
<td>
<input type="text" name="reg_id" placeholder="Your Registration ID">
</td>
</tr>
<tr>
<td>
<input type="password" name="password" placeholder="Password">
</td>
</tr>
<tr>
<td>
<input type="submit" placeholder="Confirm Signup" value="Confirm Signup">
</td>
</tr>
</table>
</form>
Run Code Online (Sandbox Code Playgroud)
在function.php上我有很多不同的函数等,但注册表单的那个是:
elseif (isset($_GET['signup'])) {
$username = …Run Code Online (Sandbox Code Playgroud)