Results 1 to 2 of 2

Thread: ใครมีตัวอย่าง code(java) auto refresh database บ้างครับ

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Posts
    4


    โปรเจกจบ (java)เขียนโปรแกรมร้านอาหาร ในส่วนห้องครัวเป็น(App) ปกติจะต้องกดสั่งให้มันอัพเดทรายการอาหารที่สั่งมา อยากตั้งให้มัน auto refresh ตามเวลาที่ต้องการ พอมีตัวอย่างบ้างไหมครับ ขอบคุณล่วงหน้า

  2. #2
    Junior Member
    Join Date
    May 2009
    Posts
    10


    ลองใช้ Timer ดูครับ
    Timer t = new Timer(3000, this);

    [code]
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Date;

    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.Timer;

    public class ClockTest extends JFrame {


Similar Threads

  1. Replies: 1
    Last Post: 29-10-2008, 10:29 AM
  2. OReilly Database Porgramming With Jdbc And Java 2nd Edition
    By sarrkatty in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 19-05-2008, 10:38 PM
  3. Java Database Programming Bible
    By Xaphryl in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 18-02-2008, 12:10 PM
  4. Replies: 1
    Last Post: 13-10-2006, 01:36 PM
  5. Replies: 3
    Last Post: 24-04-2005, 06:24 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •