الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Import Com.jidesoft.docking.* ;

Featured Replies

بتاريخ:

أخواني عندما كنت أتصفح الإنترنت وجدت كود ليس بالغريب 100% ولكن هناك أنواع جديدة لم نكن نعرفها في الجافا التقليدية
وإليكم المثال الذي وجدته في النت :


import com.jidesoft.plaf.LookAndFeelFactory;
import com.jidesoft.swing.AutoRepeatButtonUtils;
import com.jidesoft.swing.JideButton;
import com.jidesoft.swing.JideSwingUtilities;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;

/**
* Demoed Component: {@link JideButton} <br> Required jar files: jide-common.jar,
* jide-components.jar <br> Required L&F: Jide L&F extension required
*/
public class JideButtonDemo extends AbstractDemo {

private AbstractButton[] _buttons;

public JideButtonDemo() {
}

public String getName() {
return "JideButton Demo";
}

public String getProduct() {
return PRODUCT_NAME_COMMON;
}

@Override
public String getDescription() {
return "JideButton is a special JButton ideal for toolbar buttons. It has different styles and can adjust to different LookAndFeels.\n" +
"\n" +
"Demoed classes:\n" +
"com.jidesoft.swing.JideButton\n";
}

public Component getDemoPanel() {
JPanel panel = new JPanel(new GridLayout(6, 1));
_buttons = new AbstractButton[6];
_buttons[0] = createJideButton("Rename this file", ButtonsIconsFactory.getImageIcon(ButtonsIconsFactory.Buttons.RENAME));
_buttons[1] = createJideButton("Move this file", ButtonsIconsFactory.getImageIcon(ButtonsIconsFactory.Buttons.MOVE));
_buttons[2] = createJideButton("Copy this file", ButtonsIconsFactory.getImageIcon(ButtonsIconsFactory.Buttons.COPY));
_buttons[3] = createJideButton("Publish this file", ButtonsIconsFactory.getImageIcon(ButtonsIconsFactory.Buttons.PUBLISH));
_buttons[4] = createJideButton("Email this file", ButtonsIconsFactory.getImageIcon(ButtonsIconsFactory.Buttons.EMAIL));
_buttons[5] = createJideButton("Delete this file", ButtonsIconsFactory.getImageIcon(ButtonsIconsFactory.Buttons.DELET));
for (AbstractButton button : _buttons) {
panel.add(button);
}
return JideSwingUtilities.createTopPanel(panel);
}

@Override
public String getDemoFolder() {
return "B4. JideButton";
}

public static void main(String[] args) {
LookAndFeelFactory.installDefaultLookAndFeelAndExtension();
showAsFrame(new JideButtonDemo());
}

@Override
public Component getOptionsPanel() {
final JRadioButton style1 = new JRadioButton("Toolbar Style");
final JRadioButton style2 = new JRadioButton("Toolbox Style");
final JRadioButton style3 = new JRadioButton("Flat Style");
final JRadioButton style4 = new JRadioButton("Hyperlink Style");
ButtonGroup buttonGroup = new ButtonGroup();
buttonGroup.add(style1);
buttonGroup.add(style2);
buttonGroup.add(style3);
buttonGroup.add(style4);
JPanel switchPanel = new JPanel(new GridLayout(4, 1, 3, 3));
switchPanel.add(style1);
switchPanel.add(style2);
switchPanel.add(style3);
switchPanel.add(style4);
style1.setSelected(true);

style1.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (style1.isSelected()) {
for (AbstractButton _button : _buttons) {
JideButton button = (JideButton) _button;
button.setButtonStyle(JideButton.TOOLBAR_STYLE);
}
}
}
});
style2.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (style2.isSelected()) {
for (AbstractButton _button : _buttons) {
JideButton button = (JideButton) _button;
button.setButtonStyle(JideButton.TOOLBOX_STYLE);
}
}
}
});
style3.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (style3.isSelected()) {
for (AbstractButton _button : _buttons) {
JideButton button = (JideButton) _button;
button.setButtonStyle(JideButton.FLAT_STYLE);
}
}
}
});
style4.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (style4.isSelected()) {
for (AbstractButton _button : _buttons) {
JideButton button = (JideButton) _button;
button.setButtonStyle(JideButton.HYPERLINK_STYLE);
}
}
}
});

return switchPanel;
}

static JideButton createJideButton(String name, Icon icon) {
final JideButton button = new JideButton(name, icon);
button.setHorizontalAlignment(SwingConstants.CENTER);
AutoRepeatButtonUtils.install(button);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("print");
}
});
return button;
}
}


فقط ماذا تعني جملة import com.jidesoft.docking.* ; التالية .
وكيف أستطيع الحصول عليها من الجافا أم من برامج
أخرى مساعدة ؟؟؟

وشكرا

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.