الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

التعريفات الاولية عن الابليت و حزمة AWT

مغلق
بدأه albahrain في 15 يوليو 2005 · 6 رد · 1,373 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ياريت تكون الاجوبة بالانجليزية و ياريت لو احد عنده رابطة فيها الاجابات و امثله لا يبخل او كتاب فيه الاجوبة

1- wht is java applet?

2- wht is function java.applet and java.awt?

3- wht is life circle of applet?

وشكرا ياريت الاجابات اليوم احصلها

وشكرا

#2

1- what is java applet?

البريمج المكتوب بلغة جافا و المخصص للعمل على الشبكات و ليس على الحاسب العادي وهو مقيد بقيود أمنية . يمر أثناء عمله

بعدة مراحل تنفذ في كل مرحلة منها مثود معينة وهو ما يدعى بدورة حياة الأبليت أي :

)))life circle of applet(((

و بالانكليزية (منقول) :

applets:are little programs that run inside a Web browser. Because they must be safe, applets are limited in what they can accomplish. However, applets are a powerful tool that support client-side programming, a major issue for the Web.

مثال بسيط :

import javax.swing.*;
 import java.awt.*;
 public class Applet1 extends JApplet {
 public void init() {
 getContentPane().add(new JLabel("Applet!"));
  } 
}

what is life circle of applet?

و هي مجمل المراحل التي يمر بها الأبلت تنفذ فيها عدة طُرق هي :

init() :

تُستدعى بشكل تلقائي عند بدء عملية شحن الأبليت

start() :

لتشغيل الأبليت

stop() :

لإيقاف الأبليت

destroy() :

تُستدعى عند إغلاق المتصفح

الشرح الانكليزي :

init( )
Automatically called to perform first-time initialization of the applet, including component layout. You’ll always override this method.
start( )
Called every time the applet moves into sight on the Web browser to allow the applet to start up its normal operations (especially those that are shut off by stop( )). Also called after init( ).
stop( )
Called every time the applet moves out of sight on the Web browser to allow the applet to shut off expensive operations. Also called right before destroy( ).
destroy( )
Called when the applet is being unloaded from the page to perform final release of resources when the applet is no longer used

تم تعديل هذه المشاركة بواسطة hani1 في 15 يوليو 2005 في 15:20

الحياة كلها وقفة عز فقط

------------------------------------------

المجتمع معرفة و المعرفة قوة

#3

شكرا يا اخي على المعلومات المفيدة

#4

لا شكر على واجب

الحياة كلها وقفة عز فقط

------------------------------------------

المجتمع معرفة و المعرفة قوة

#5

ياريت الاجابة على السؤال الثاني

2- wht is function java.applet and java.awt?
#6
java.awt

حزمة فيها عناصر لعمل واجهات رسومية للمستخدم

The java.awt package contains the classes and interfaces that make up the Abstract Windowing Toolkit

فيها مجموعة من الـ interfaces :

LayoutManager
 Methods for laying out containers

MenuContainer
 Methods for menu-related containers

و مجموعة من الصفوف classes :

BorderLayout
 A layout manager for arranging items in border formation

Button
 A UI pushbutton

Canvas 
 A canvas for drawing and performing other graphics operations

CardLayout
 A layout manager for HyperCard-like metaphors

Checkbox
 A checkbox

CheckboxGroup
 A group of exclusive checkboxes (radio buttons)

CheckboxMenuItem
 A toggle menu item

Choice
 A popup menu of choices

Color
 An abstract representation of a color

Component
 The abstract generic class for all UI components

Container
 Abstract behavior for a component that can hold other components or containers

Dialog
 A window for brief interactions with users

Dimension
 An object representing width and height

Event
 An object representing events caused by the system or based on user input

FileDialog
 A dialog for getting file names from the local file system

FlowLayout
 A layout manager that lays out objects from left to right in rows

Font
 An abstract representation of a font

FontMetrics
 Abstract class for holding information about a specific font's character shapes and height and width infor-mation

Frame
 A top-level window with a title

Graphics
 Abstract behavior for representing a graphics context, and for drawing and painting shapes and objects

GridBagConstraints
 Constraints for components laid out using GridBagLayout

GridBagLayout
 A layout manager that aligns components horizontally and vertically based on their values from GridBagConstraints

GridLayout
 A layout manager with rows and columns; elements are added to each cell in the grid

Image
 An abstract representation of a bitmap image

Insets
 Distances from the outer border of the window; used to lay out components

Label
 A text label for UI components

List
 A scrolling list

MediaTracker
 A way to keep track of the status of media objects being loaded over the net

Menu
 A menu, which can contain menu items and is a container on a menubar

MenuBar
 A menubar (container for menus)

MenuComponent
 The abstract superclass of all menu elements

MenuItem
 An individual menu item

Panel
 A container that is displayed

Point
 An object representing a point (x and y coordinates)

Polygon
 An object representing a set of points

Rectangle
 An object representing a rectangle (x and y coordinates for the top corner, plus width and height)

Scrollbar
 A UI scrollbar object

TextArea
 A multiline, scrollable, editable text field

TextComponent
 The superclass of all editable text components

TextField
 A fixed-size editable text field

Toolkit
 Abstract behavior for binding the abstract AWT classes to a platform-specific toolkit implementation

Window
 A top-level window, and the superclass of the Frame and Dialog classes

أما الحزمة :

java.applet

The java.applet package provides applet-specific behavior.

نفس الأمر فيها interfaces :

AppletContext
 Methods to refer to the applet's context

AppletStub
 Methods for implementing applet viewers

AudioClip
 Methods for playing audio files

و classes :

Applet
 The base applet class

(((الشرح الانكليزي منقول)))

تم تعديل هذه المشاركة بواسطة hani1 في 16 يوليو 2005 في 15:36

الحياة كلها وقفة عز فقط

------------------------------------------

المجتمع معرفة و المعرفة قوة

#7

اخي ان موضوع مخالف في عنوانه يرجى منك مراجعة قواعد المشاركة قبل المشاركة...

هذه المرة لن اغلق الموضوع لان اصبح فيه فائدة و لكن يرجى عدم تكرار المخالفة

Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…