SlideShare a Scribd company logo
Java GUI програмчлал (Java DB, Derby )

Энэ ажлаар жава хэл дээр хэрхэн энгийн десктоп програм хийх талаар авч үзнэ. Ингэхдээ
жавагийн өөр дээр нь бэлэн суусан байдаг өгөгдлийн санг ашиглана.

Requirements:

   1. NetBeans
   2. JDK
      Энэхүү дасгалыг гүйцэтгэхийн тулд дээрх програмууд таны компьютер дээр суусан
      байх шаардлагатай.



   1. Tools цэсний Java DB Database –> Start Server гэсэн командаар серверээ




      ачаалуулна.
   2. Өгөгдлийн сангаа үүсгэхдээ Tools > Java DB Database > Create Database
3. Өгөгдлийн сангийн нэр талбар car_database хэрэглэгчийн нэр, нууц үг хэсэгт
   “nbuser” гэж өгнө.
4. Өгөгдлийн сангийн холболтон дээр хулганын баруун товчийг дарж “Connect”




   холболтыг эхлүүлнэ.
5. Үүсгэсэн холболтынхоо Tables хэсэгт хулганын баруун товч дарж Execute command
   гэснийг сонгоно.
6. Гарч ирэх цонхонд доорх СКюЛ командыг хуулж тавих хэрэгтэй.
    create table "CAR"
    (
  "MAKE" VARCHAR(50) not null primary key,
  "MODEL" VARCHAR(50),
  "PRICE" INTEGER,
  "BODY_STYLE" VARCHAR(30),
  "COLOR" VARCHAR(20),
  "SUN_ROOF" INTEGER default 0,
  "SPOILER" INTEGER default 0,
  "TIRE_SIZE" INTEGER,
  "TIRE_TYPE" INTEGER,
  "MODERNNESS" INTEGER
);
insert into car values ('Acura', 'NSX', 47075, 'coupe', 'yellow', 1, 1, 18, 1, 38);
insert into car values ('Audi', 'A8', 63890, 'sedan', 'black', 1, 0, 24, 0, 88);
insert into car values ('BMW', 'M-Series', 108900, 'coupe', 'red', 1, 0, 50, 0, 44);
insert into car values ('Buick', 'Lucerne', 31599, 'sedan', 'black', 1, 0, 26, 2, 65);
7.     зурагтай товчин дээр дарж дээрх мэдээллийг өгөгдлийн сан руу оруулна.
8. Үүний дараа Жава аппликейшнээ үүсгэнэ.
9. Жава десктоп аппликейшнийг сонгоно.
10. Дараагийн гарч ирэх цонхонд Database Application – г сонгож үргэлжлүүлнэ.
11. Түрүүчийн үүсгэсэн холболтоо сонгоход уг өгөгдлийн сангийн хүснэгтийн баганууд
    орж ирэх бөгөөд эндээс өөрсдийн харуулах багануудыг сонгоно.




12. Бэлэн болсон прожектоо ажиллуулахдаа уг прожектоо сонгоод хулганы баруун
    товчлуур дээр дарж Run – гэснийг сонгоно.

More Related Content

Featured

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Java gui програмчлал

  • 1. Java GUI програмчлал (Java DB, Derby ) Энэ ажлаар жава хэл дээр хэрхэн энгийн десктоп програм хийх талаар авч үзнэ. Ингэхдээ жавагийн өөр дээр нь бэлэн суусан байдаг өгөгдлийн санг ашиглана. Requirements: 1. NetBeans 2. JDK Энэхүү дасгалыг гүйцэтгэхийн тулд дээрх програмууд таны компьютер дээр суусан байх шаардлагатай. 1. Tools цэсний Java DB Database –> Start Server гэсэн командаар серверээ ачаалуулна. 2. Өгөгдлийн сангаа үүсгэхдээ Tools > Java DB Database > Create Database
  • 2. 3. Өгөгдлийн сангийн нэр талбар car_database хэрэглэгчийн нэр, нууц үг хэсэгт “nbuser” гэж өгнө. 4. Өгөгдлийн сангийн холболтон дээр хулганын баруун товчийг дарж “Connect” холболтыг эхлүүлнэ. 5. Үүсгэсэн холболтынхоо Tables хэсэгт хулганын баруун товч дарж Execute command гэснийг сонгоно.
  • 3. 6. Гарч ирэх цонхонд доорх СКюЛ командыг хуулж тавих хэрэгтэй. create table "CAR" ( "MAKE" VARCHAR(50) not null primary key, "MODEL" VARCHAR(50), "PRICE" INTEGER, "BODY_STYLE" VARCHAR(30), "COLOR" VARCHAR(20), "SUN_ROOF" INTEGER default 0, "SPOILER" INTEGER default 0, "TIRE_SIZE" INTEGER, "TIRE_TYPE" INTEGER, "MODERNNESS" INTEGER ); insert into car values ('Acura', 'NSX', 47075, 'coupe', 'yellow', 1, 1, 18, 1, 38); insert into car values ('Audi', 'A8', 63890, 'sedan', 'black', 1, 0, 24, 0, 88); insert into car values ('BMW', 'M-Series', 108900, 'coupe', 'red', 1, 0, 50, 0, 44); insert into car values ('Buick', 'Lucerne', 31599, 'sedan', 'black', 1, 0, 26, 2, 65); 7. зурагтай товчин дээр дарж дээрх мэдээллийг өгөгдлийн сан руу оруулна. 8. Үүний дараа Жава аппликейшнээ үүсгэнэ.
  • 4. 9. Жава десктоп аппликейшнийг сонгоно.
  • 5. 10. Дараагийн гарч ирэх цонхонд Database Application – г сонгож үргэлжлүүлнэ.
  • 6. 11. Түрүүчийн үүсгэсэн холболтоо сонгоход уг өгөгдлийн сангийн хүснэгтийн баганууд орж ирэх бөгөөд эндээс өөрсдийн харуулах багануудыг сонгоно. 12. Бэлэн болсон прожектоо ажиллуулахдаа уг прожектоо сонгоод хулганы баруун товчлуур дээр дарж Run – гэснийг сонгоно.