最好能给出源码

解决方案 »

  1.   

    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
    + request.getServerName() + ":" + request.getServerPort()
    + path + "/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <base href="<%=basePath%>"> <title>登录界面</title> <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    --> </head> <body>
    <h2 align="center">
    登录界面
    </h2>

    <form name="form1" method="post" action="logincl.jsp" method="post">
    <table width="24%" border="1" bgcolor="#6600FF" align="center">
    <tr>
    <td width="30%">
    用户名:
    </td>
    <td width="70%">
    <input type="text" name="username">
    </td>
    </tr>
    <tr>
    <td>
    密&nbsp;&nbsp;码:
    </td>
    <td>
    <input type="text" name="password">
    </td>
    </tr>
    <tr>
    <td align="center">
    <input type="submit" name="Submit" value="登录">
    </td>
    <td align="center">
    <input type="reset" value="重填" />
    </td>
    <td>
    &nbsp;
    </td>
    </tr>
    </table>
    </form><hr color="red"> <p align="center">如果您不是该网站的会员,请<a href="regdit.jsp">注册</a></p>

    </body>
    </html>楼主试试吧,就是用<br>标签就可以了,你把这个JSP界面试试吧,正确的话给分啊,俺现在严重却分状态
                                     HOME_ning(玩物丧失)
      

  2.   

    public class ClientTalk extends JFrame{ /**
     * @param args
     */
    public static void main(String[] args) {
    ClientTalk frame = new ClientTalk("TEST");
    frame.setVisible(true);
    } public ClientTalk(String title){
    this.setSize(new Dimension(200,300));
    this.setTitle(title);
    this.getContentPane().add(new JPanel(){
    @Override
    public void paintComponent(Graphics g){
    // TODO Auto-generated method stub
    g.drawLine(40,40,80,40);
    }
    });
    this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }
    }
    你可画一条黑一条白来增强立体效果。