1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問(wèn)題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
      java詞典代碼下載 java英漢詞典完整程序

      求英漢詞典的JAVA源程序代碼

      這么個(gè)東西就算有也發(fā)不來(lái)啊 簡(jiǎn)單來(lái)一段

      創(chuàng)新互聯(lián)是一家專注網(wǎng)站建設(shè)、網(wǎng)絡(luò)營(yíng)銷策劃、微信小程序定制開(kāi)發(fā)、電子商務(wù)建設(shè)、網(wǎng)絡(luò)推廣、移動(dòng)互聯(lián)開(kāi)發(fā)、研究、服務(wù)為一體的技術(shù)型公司。公司成立十載以來(lái),已經(jīng)為1000+成都地磅秤各業(yè)的企業(yè)公司提供互聯(lián)網(wǎng)服務(wù)。現(xiàn)在,服務(wù)的1000+客戶與我們一路同行,見(jiàn)證我們的成長(zhǎng);未來(lái),我們一起分享成功的喜悅。

      import java.awt.*;

      import java.awt.event.*;

      class MyWindow extends Frame implements ActionListener

      { TextField text1,text2,text3;

      MyWindow()

      { setLayout(new FlowLayout());

      text1=new TextField(8);

      text2=new TextField(8);

      text3=new TextField(15);

      add(text1);

      add(text2);

      add(text3);

      text1.addActionListener(this);

      text2.addActionListener(this);

      setBounds(100,100,150,150);

      setVisible(true);

      validate();

      }

      public void actionPerformed(ActionEvent e)

      { if(e.getSource()==text1)

      { String word=text1.getText();

      if(word.equals("boy"))

      { text3.setText("男孩");

      }

      else if (word.equals("girl"))

      { text3.setText("女孩");

      }

      else if (word.equals("sun"))

      { text3.setText("太陽(yáng)");

      }

      else

      { text3.setText("沒(méi)有該單詞");

      }

      }

      else if(e.getSource()==text2)

      { String word=text2.getText();

      if(word.equals("男孩"))

      { text3.setText("boy");

      }

      else if (word.equals("女孩"))

      { text3.setText("girl");

      }

      else if (word.equals("太陽(yáng)"))

      { text3.setText("sun");

      }

      else

      { text3.setText("沒(méi)有該單詞");

      }

      }

      }

      }

      public class Example

      { public static void main(String args[])

      {

      new MyWindow();

      new MyWindow();

      new MyWindow();

      new MyWindow();

      }

      }

      文本框輸入再回車.即可.

      怎樣用JAVA下載手機(jī)電子詞典(詳細(xì)步驟)

      地址在下面 金山詞霸

      迅雷直接下

      如果不行 網(wǎng)址

      安裝方法

      1.購(gòu)買一個(gè)T-Flash卡的讀卡器,T-Flash卡專用讀卡器推薦

      2.關(guān)機(jī),取下TF卡把卡裝在讀卡器上與電腦連接,打開(kāi):mobile。

      3.打開(kāi)文件:kjava 將你所喜歡的多個(gè)JVAV游戲壓縮文件復(fù)制過(guò)來(lái),然后解壓全部文件,關(guān)閉窗口。

      4.把T-Flash卡卡裝回手機(jī)。打開(kāi)手機(jī)的游戲和應(yīng)用程序→轉(zhuǎn)存儲(chǔ)卡設(shè)置→選擇卡進(jìn)入安裝新應(yīng)用程序→選擇→安裝→下載→存儲(chǔ)→多個(gè)安裝→完成。

      Java問(wèn)題電子詞典查單詞

      補(bǔ)充:我沒(méi)有ACCESS,我用的是odbc直接連接mdb文件,你可以用ACCESS同時(shí)操作mdb文件.如果要用到ACCESS,請(qǐng)修改bean中的屬性值.

      你的東西做的很好

      只是數(shù)據(jù)庫(kù)連接出了問(wèn)題

      這是我為你的工程寫(xiě)的一個(gè)關(guān)于數(shù)據(jù)庫(kù)的bean

      提供了一系列的數(shù)據(jù)操作方法

      該類已經(jīng)測(cè)試成功,只要添加到你的工程里就可以了。希望對(duì)你有用。

      package lg_cidian;

      import java.sql.Connection;

      import java.sql.DriverManager;

      import java.sql.ResultSet;

      import java.sql.SQLException;

      import java.sql.Statement;

      /**

      * 數(shù)據(jù)庫(kù)操作的JavaBean類,用于對(duì)數(shù)據(jù)庫(kù)的查詢與更新的實(shí)現(xiàn);

      * 該類默認(rèn)的連接的數(shù)據(jù)庫(kù)為odbc連接本地?cái)?shù)據(jù)文件;

      * 該類主要為用戶一系列的數(shù)據(jù)操作提供底層服務(wù).

      *

      * @version 1.0 2010/06/13

      * @author Kiwwor

      * @see UserData

      */

      public class Access {

      //驅(qū)動(dòng)程序類

      private String driver = "sun.jdbc.odbc.JdbcOdbcDriver";

      //連接數(shù)據(jù)庫(kù)url

      private String connectionUrl="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=en.mdb";

      //用戶名

      private String user = "";

      //用戶密碼

      private String password = "";

      //數(shù)據(jù)庫(kù)連接對(duì)象

      private Connection connection = null;

      //數(shù)據(jù)庫(kù)對(duì)象

      private Statement statement = null;

      //數(shù)據(jù)集對(duì)象

      private ResultSet resultSet = null;

      public String getDriver() {

      return driver;

      }

      public void setDriver(String driver) {

      this.driver = driver;

      }

      public String getConnectionUrl() {

      return connectionUrl;

      }

      public void setConnectionUrl(String connectionUrl) {

      this.connectionUrl = connectionUrl;

      }

      public String getUser() {

      return user;

      }

      public void setUser(String user) {

      this.user = user;

      }

      public String getPassword() {

      return password;

      }

      public void setPassword(String password) {

      this.password = password;

      }

      public Connection getConnection() {

      return connection;

      }

      public void setConnection(Connection connection) {

      this.connection = connection;

      }

      public Statement getStatement() {

      return statement;

      }

      public void setStatement(Statement statement) {

      this.statement = statement;

      }

      public ResultSet getResultSet() {

      return resultSet;

      }

      public void setResultSet(ResultSet resultSet) {

      this.resultSet = resultSet;

      }

      /**

      * 獲取一個(gè)連接對(duì)象,默認(rèn)連接對(duì)象本地?cái)?shù)據(jù)庫(kù)qq。

      * @return 連接是否成功

      */

      public boolean createConnection() {

      boolean b = false;

      try {

      Class.forName(driver);

      connection = DriverManager.getConnection(connectionUrl, user, password);

      b = true;

      } catch (Exception e) {

      e.printStackTrace();

      }

      return b;

      }

      /**

      * 更新數(shù)據(jù)庫(kù)

      * @param sql 更新的sql語(yǔ)句

      * @return 更新是否成功

      */

      public boolean update(String sql) {

      boolean b =false;

      try {

      statement = connection.createStatement();

      statement.execute(sql);

      b = true;

      } catch (Exception e) {

      e.printStackTrace();

      }

      return b;

      }

      /**

      * 執(zhí)行查詢,將查詢的結(jié)果集給resultmentSet。

      * @param sql 查詢的sql語(yǔ)句

      */

      public void query(String sql) {

      try {

      statement = connection.createStatement();

      resultSet = statement.executeQuery(sql);

      } catch (Exception e) {

      e.printStackTrace();

      }

      }

      /**

      * 檢測(cè)結(jié)果集是否為空

      * @return true為存在記錄

      */

      public boolean next() {

      boolean b = false;

      try {

      if (resultSet.next()) b = true;

      } catch (Exception e) {

      e.printStackTrace();

      }

      return b;

      }

      /**

      * 獲得結(jié)果集中當(dāng)前行columnLabel的記錄

      * @param columnLabel 當(dāng)前行要查詢的列名.

      * @return 查詢的列值

      */

      public String getValue(String columnLabel) {

      String value = null;

      try {

      if (resultSet != null) value = resultSet.getString(columnLabel);

      } catch (Exception e) {

      e.printStackTrace();

      }

      return value;

      }

      /**

      * 獲得結(jié)果集中當(dāng)前行columnIndex的記錄

      * @param columnIndex 當(dāng)前行查詢的列索引,第一列為1,第二列為2...

      * @return 查詢的列值

      */

      public String getValue(int columnIndex) {

      String value = null;

      try {

      if (resultSet != null) value = resultSet.getString(columnIndex);

      } catch (Exception e) {

      e.printStackTrace();

      }

      return value;

      }

      /**

      * 關(guān)閉連接對(duì)象

      */

      public void closeConnection() {

      try {

      if (connection != null) connection.close();

      } catch (SQLException e) {

      e.printStackTrace();

      }

      }

      /**

      * 關(guān)閉數(shù)據(jù)庫(kù)對(duì)象

      */

      public void closeStatement() {

      try {

      if (statement != null) statement.close();

      } catch (SQLException e) {

      e.printStackTrace();

      }

      }

      /**

      * 關(guān)閉結(jié)果集

      */

      public void closeResultSet() {

      try {

      if (resultSet != null) resultSet.close();

      } catch (SQLException e) {

      e.printStackTrace();

      }

      }

      /**

      * 關(guān)閉數(shù)據(jù)連接對(duì)象,數(shù)據(jù)庫(kù)對(duì)象和數(shù)據(jù)結(jié)果集對(duì)象。

      */

      public void closeAll() {

      closeResultSet();

      closeStatement();

      closeConnection();

      }

      /**

      * 測(cè)試該類函數(shù)。

      * @param args

      */

      public static void main(String[] args) {

      Access db = new Access();

      if (db.createConnection()) {

      System.out.println("測(cè)試數(shù)據(jù)庫(kù)連接成功.");

      }

      db.closeAll();

      }

      }


      名稱欄目:java詞典代碼下載 java英漢詞典完整程序
      本文鏈接:http://www.ef60e0e.cn/article/ddcjdoe.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        英山县| 水城县| 奉贤区| 镇原县| 廊坊市| 绥宁县| 宁国市| 台南市| 温宿县| 出国| 临沭县| 将乐县| 木里| 青冈县| 诸城市| 新安县| 武夷山市| 芜湖市| 玛曲县| 梅河口市| 兴隆县| 柘荣县| 广州市| 炎陵县| 陇西县| 仁化县| 永清县| 綦江县| 阳泉市| 钟祥市| 固镇县| 沙洋县| 江油市| 社会| 耒阳市| 志丹县| 深水埗区| 肥城市| 鄂托克旗| 贵德县| 广德县|