亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? anchortagdesigner.java

?? WAP ide 代碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
package wapide;import javax.swing.*;import java.awt.*;import javax.swing.border.*;import java.awt.event.*;import java.text.*;import java.util.*;import java.lang.*;import javax.swing.text.*;/** * This class creates a dialog for graphically adding <go>, <prev>, and <refresh> * tags to an anchor tag.  It provides methods for setting up the dialog as well * as retrieving data from the dialog.  Data os returned as a SimpleAttribteSet to be * applied to the text that represents the anchor tag element. * * Copyright:    Copyright (c) 2003 * @author Mark Busman * @version 1.0 * * For License and contact information see WAPIDE.java */public class AnchorTagDesigner extends JDialog {  private BorderLayout borderLayout1 = new BorderLayout();  private ImageIcon imgrefresh;  private ImageIcon imgprev;  private ImageIcon imggo;  private ImageIcon imgvar;  private ImageIcon imgpost;  private ImageIcon imgdown;  private ImageIcon imgup;  private ImageIcon imgpic;  private TitledBorder titledBorder1;  private Border border1;  private TitledBorder titledBorder2;  private Border border2;  private TitledBorder titledBorder3;  private JPanel ContentPanel = new JPanel();  private BorderLayout borderLayout4 = new BorderLayout();  private JToggleButton RefreshToggleButton = new JToggleButton();  private JToggleButton PrevToggleButton = new JToggleButton();  private JPanel ActionPanel = new JPanel();  private JToggleButton GoToggleButton = new JToggleButton();  private JScrollPane ListScrollPane = new JScrollPane();  private BorderLayout borderLayout2 = new BorderLayout();  private JPanel Additionals = new JPanel();  private JPanel AcceptPanel = new JPanel();  private FlowLayout flowLayout2 = new FlowLayout();  private JButton CancelButton = new JButton();  private JButton OkButton = new JButton();  private ButtonGroup actionGroup = new ButtonGroup();  private JToggleButton NoneToggleButton = new JToggleButton();  private FlowLayout flowLayout1 = new FlowLayout();  private JPanel AdditionalControlsPanel = new JPanel();  private BorderLayout borderLayout5 = new BorderLayout();  private JPanel AdditionalButtonPanel = new JPanel();  private JPanel LayoutPanel = new JPanel();  private GridLayout gridLayout1 = new GridLayout();  private JButton PostfieldButton = new JButton();  private JButton SetVarButton = new JButton();  private JList AdditionalActionList = new JList();  private JButton PropertiesButton = new JButton();  private JScrollPane PropertiesScrollPane = new JScrollPane();  private JButton DeleteButton = new JButton();  private JLabel jLabel1 = new JLabel();  private Border border3;  private JTextField PropertiesText = new JTextField();  // User defined Variables and constants  /**   * Maintains the list items displayed by the list.   */  private Vector listData = new Vector();  /**   * The String of the previous ToggleButton.  Used to determine if the   * same buton is pressed twice, and thus avoid loss of data due to   * button specific initializations.   */  private String prevAction = "";  /**   * The boolean value used to determine if the OK Button was used to   * close the dialog, defualt is <i>false<i>.   */  private boolean OkPressed = false;  // Constants  private static int LEFT_MOUSE_BUTTON = 16;  private static int RIGHT_MOUSE_BUTTON = 4;  /**   * Displays the dialog without setting any values.   */  public AnchorTagDesigner() {    try {      jbInit();      pack();      show();    }    catch(Exception e) {      e.printStackTrace();    }  }  /**   * Displays the dialog after setting the values specified by set.   * @param SimpleAttributeSet set - The set of attributes taken from the anchor   * element.  These attributes must be stored as sub-attributes of the anchor tag   * element.   */  public AnchorTagDesigner(SimpleAttributeSet set) {    try {      jbInit();      pack();      setData(set);      show();    }    catch(Exception e) {      e.printStackTrace();    }  }  //public static void main(String[] args) {  //  AnchorTagDesigner anchorTagDesigner1 = new AnchorTagDesigner();  //}  /**   * Initializes dialog components.   */  private void jbInit() throws Exception {    imgrefresh = new ImageIcon(wapide.IDEFrame.class.getResource("refreshTag.gif"));    imgprev = new ImageIcon(wapide.IDEFrame.class.getResource("prevTag.gif"));    imggo = new ImageIcon(wapide.IDEFrame.class.getResource("goTag.gif"));    imgvar = new ImageIcon(wapide.IDEFrame.class.getResource("setvarTag.gif"));    imgpost = new ImageIcon(wapide.IDEFrame.class.getResource("postfieldTag.gif"));    imgdown = new ImageIcon(wapide.IDEFrame.class.getResource("darrow.gif"));    imgup = new ImageIcon(wapide.IDEFrame.class.getResource("uarrow.gif"));    imgpic = new ImageIcon(wapide.IDEFrame.class.getResource("imgTag.gif"));    titledBorder1 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(142, 142, 142)),"Data");    border1 = BorderFactory.createEtchedBorder(Color.white,new Color(142, 142, 142));    titledBorder2 = new TitledBorder(border1,"Action Type");    border2 = BorderFactory.createEtchedBorder(Color.white,new Color(142, 142, 142));    titledBorder3 = new TitledBorder(new EtchedBorder(EtchedBorder.RAISED,Color.white,new Color(142, 142, 142)),"Additional Actions");    border3 = new EtchedBorder(EtchedBorder.RAISED,Color.white,new Color(142, 142, 142));    this.getContentPane().setLayout(borderLayout1);    ContentPanel.setLayout(borderLayout4);    RefreshToggleButton.setNextFocusableComponent(PropertiesButton);    RefreshToggleButton.setIcon(imgrefresh);    RefreshToggleButton.setText("Refresh");    RefreshToggleButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        ToggleButton_actionPerformed(e);      }    });    PrevToggleButton.setNextFocusableComponent(RefreshToggleButton);    PrevToggleButton.setIcon(imgprev);    PrevToggleButton.setText("Prev");    PrevToggleButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        ToggleButton_actionPerformed(e);      }    });    ActionPanel.setBorder(titledBorder2);    ActionPanel.setMinimumSize(new Dimension(301, 50));    ActionPanel.setPreferredSize(new Dimension(512, 70));    ActionPanel.setRequestFocusEnabled(false);    ActionPanel.setLayout(flowLayout1);    GoToggleButton.setNextFocusableComponent(PrevToggleButton);    GoToggleButton.setIcon(imggo);    GoToggleButton.setText("Go");    GoToggleButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        ToggleButton_actionPerformed(e);      }    });    Additionals.setBorder(titledBorder3);    Additionals.setMinimumSize(new Dimension(332, 200));    Additionals.setPreferredSize(new Dimension(404, 230));    Additionals.setRequestFocusEnabled(false);    Additionals.setLayout(borderLayout2);    AcceptPanel.setLayout(flowLayout2);    flowLayout2.setAlignment(FlowLayout.RIGHT);    CancelButton.setNextFocusableComponent(NoneToggleButton);    CancelButton.setText("Cancel");    CancelButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        CancelButton_actionPerformed(e);      }    });    OkButton.setMaximumSize(new Dimension(81, 29));    OkButton.setMinimumSize(new Dimension(81, 29));    OkButton.setNextFocusableComponent(CancelButton);    OkButton.setPreferredSize(new Dimension(81, 29));    OkButton.setText("Ok");    OkButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        OkButton_actionPerformed(e);      }    });    ContentPanel.setMaximumSize(new Dimension(390, 340));    ContentPanel.setMinimumSize(new Dimension(380, 301));    ContentPanel.setPreferredSize(new Dimension(385, 370));    ContentPanel.setRequestFocusEnabled(false);    NoneToggleButton.setNextFocusableComponent(GoToggleButton);    NoneToggleButton.setText("None");    NoneToggleButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        ToggleButton_actionPerformed(e);      }    });    AdditionalControlsPanel.setLayout(borderLayout5);    AdditionalButtonPanel.setLayout(gridLayout1);    gridLayout1.setRows(3);    gridLayout1.setColumns(1);    PostfieldButton.setNextFocusableComponent(SetVarButton);    PostfieldButton.setHorizontalAlignment(SwingConstants.LEFT);    PostfieldButton.setIcon(imgpost);    PostfieldButton.setText("Postfield");    PostfieldButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        PostfieldButton_actionPerformed(e);      }    });    SetVarButton.setNextFocusableComponent(DeleteButton);    SetVarButton.setHorizontalAlignment(SwingConstants.LEFT);    SetVarButton.setIcon(imgvar);    SetVarButton.setText("Setvar");    SetVarButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        SetVarButton_actionPerformed(e);      }    });    LayoutPanel.setBorder(BorderFactory.createEtchedBorder());    LayoutPanel.setRequestFocusEnabled(false);    AdditionalActionList.setNextFocusableComponent(OkButton);    AdditionalActionList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);    AdditionalActionList.addMouseListener(new java.awt.event.MouseAdapter() {      public void mouseClicked(MouseEvent e) {        AdditionalActionList_mouseClicked(e);      }    });    PropertiesButton.setNextFocusableComponent(PropertiesScrollPane);    PropertiesButton.setText("Properties");    PropertiesButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        PropertiesButton_actionPerformed(e);      }    });    PropertiesScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);    PropertiesScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);    PropertiesScrollPane.setNextFocusableComponent(PostfieldButton);    PropertiesScrollPane.setPreferredSize(new Dimension(242, 40));    DeleteButton.setNextFocusableComponent(AdditionalActionList);    DeleteButton.setText("Delete");    DeleteButton.addActionListener(new java.awt.event.ActionListener() {      public void actionPerformed(ActionEvent e) {        DeleteButton_actionPerformed(e);      }    });    jLabel1.setBorder(border3);    jLabel1.setPreferredSize(new Dimension(360, 2));    jLabel1.setRequestFocusEnabled(false);    this.setModal(true);    PropertiesText.setRequestFocusEnabled(false);    PropertiesText.setEditable(false);    AdditionalControlsPanel.setRequestFocusEnabled(false);    AdditionalButtonPanel.setRequestFocusEnabled(false);    AcceptPanel.setRequestFocusEnabled(false);    this.getContentPane().add(ContentPanel, BorderLayout.CENTER);    ContentPanel.add(ActionPanel, BorderLayout.CENTER);    ActionPanel.add(NoneToggleButton, null);    ActionPanel.add(GoToggleButton, null);    ActionPanel.add(PrevToggleButton, null);    ActionPanel.add(RefreshToggleButton, null);    ActionPanel.add(jLabel1, null);    ActionPanel.add(PropertiesScrollPane, null);    PropertiesScrollPane.getViewport().add(PropertiesText, null);    ActionPanel.add(PropertiesButton, null);    ContentPanel.add(Additionals, BorderLayout.SOUTH);    Additionals.add(ListScrollPane, BorderLayout.CENTER);    ListScrollPane.getViewport().add(AdditionalActionList, null);    Additionals.add(AdditionalControlsPanel, BorderLayout.EAST);    AdditionalControlsPanel.add(LayoutPanel, BorderLayout.CENTER);    LayoutPanel.add(AdditionalButtonPanel, null);    AdditionalButtonPanel.add(PostfieldButton, null);    AdditionalButtonPanel.add(SetVarButton, null);    AdditionalControlsPanel.add(DeleteButton, BorderLayout.SOUTH);    this.getContentPane().add(AcceptPanel, BorderLayout.SOUTH);    AcceptPanel.add(OkButton, null);    AcceptPanel.add(CancelButton, null);    actionGroup.add(NoneToggleButton);    actionGroup.add(GoToggleButton);    actionGroup.add(PrevToggleButton);    actionGroup.add(RefreshToggleButton);  }  /**   * General ToggleButton handler, detects clicks on the "None", "Go", "Prev",   * and "Refresh" ToggleButtons in the dialog.  Based on what button is selected   * dialog controls are updated and control states changed to reflect the   * choices available to the selected button.   */  private void ToggleButton_actionPerformed(ActionEvent e) {    String action =  (String) e.getActionCommand();    if (!prevAction.equals(action)) {      listData = new Vector();      AdditionalActionList.setListData(listData);    }    if (action.equals("None")) {      SetVarButton.setEnabled(false);      PostfieldButton.setEnabled(false);      DeleteButton.setEnabled(false);      AdditionalActionList.setEnabled(false);      PropertiesButton.setEnabled(false);      PropertiesText.setEnabled(false);      PropertiesText.setText("");    }    if (action.equals("Prev") && !prevAction.equals("Prev")) {      AdditionalActionList.setCellRenderer(new CustomCellRenderer(SetVarButton.getIcon()));      SetVarButton.setEnabled(true);      PostfieldButton.setEnabled(false);      DeleteButton.setEnabled(true);      AdditionalActionList.setEnabled(true);      PropertiesButton.setEnabled(true);      PropertiesText.setEnabled(true);      PropertiesText.setText("");    }    if (action.equals("Go") && !prevAction.equals("Go")) {      AdditionalActionList.setCellRenderer(new CustomCellRenderer(PostfieldButton.getIcon()));      SetVarButton.setEnabled(true);      PostfieldButton.setEnabled(true);      DeleteButton.setEnabled(true);      AdditionalActionList.setEnabled(true);      PropertiesButton.setEnabled(true);      PropertiesText.setEnabled(true);      PropertiesText.setText("");    }    if (action.equals("Refresh") && !prevAction.equals("Refresh")) {      prevAction = action;      AdditionalActionList.setCellRenderer(new CustomCellRenderer(SetVarButton.getIcon()));      SetVarButton.setEnabled(true);      PostfieldButton.setEnabled(false);      DeleteButton.setEnabled(true);      AdditionalActionList.setEnabled(true);      PropertiesButton.setEnabled(true);      PropertiesText.setEnabled(true);      PropertiesText.setText("");    }    if (!prevAction.equals(action))      prevAction = action;  }  /**   * Adds a String with the neccessary "postfield" data to the list.   */  private void PostfieldButton_actionPerformed(ActionEvent e) {    listData.add(new String("<postfield name=\"\" value=\"\"/>"));    AdditionalActionList.setListData(listData);    AdditionalActionList.setSelectedIndex(listData.size() - 1);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线不卡视频| 青青国产91久久久久久| 懂色av中文字幕一区二区三区| 99久久亚洲一区二区三区青草| 色综合天天综合色综合av | 久久久五月婷婷| 欧美天天综合网| 91精品国产综合久久精品图片 | 美腿丝袜亚洲一区| 亚洲另类中文字| 国产精品久久久99| 精品日韩99亚洲| 日韩亚洲欧美在线观看| 欧美视频在线观看一区| 色狠狠桃花综合| av一区二区不卡| 成人免费视频网站在线观看| 久久成人18免费观看| 天堂在线一区二区| 午夜精品一区二区三区三上悠亚| 国产精品国产精品国产专区不蜜| 国产亚洲人成网站| 精品国产第一区二区三区观看体验| 欧美精品久久99| 欧美日韩国产一二三| 在线免费观看日韩欧美| 色综合咪咪久久| 91丨九色丨蝌蚪富婆spa| av一区二区三区黑人| 成人中文字幕在线| 国产馆精品极品| 国产99久久精品| 高清久久久久久| 国产成人免费视频精品含羞草妖精| 久久成人18免费观看| 美女网站一区二区| 蜜桃视频在线观看一区二区| 午夜国产精品一区| 丝袜诱惑亚洲看片| 免费在线观看视频一区| 日韩高清欧美激情| 蜜臀精品一区二区三区在线观看| 日本在线播放一区二区三区| 亚洲va天堂va国产va久| 午夜欧美在线一二页| 日韩电影免费一区| 麻豆91在线观看| 国产一区二区在线视频| 国产毛片精品一区| 成人av电影观看| 91色乱码一区二区三区| 91精品福利视频| 欧美影视一区二区三区| 欧美一区二区在线观看| 欧美成人video| 欧美激情一区二区三区不卡| 亚洲人精品午夜| 亚洲国产aⅴ天堂久久| 美女脱光内衣内裤视频久久影院| 国产乱妇无码大片在线观看| 成人免费视频caoporn| 在线影院国内精品| 欧美一区二区三区视频在线 | 99re在线精品| 欧美日韩激情一区二区三区| 日韩精品在线网站| 国产亚洲自拍一区| 亚洲日穴在线视频| 丝袜a∨在线一区二区三区不卡| 激情欧美一区二区三区在线观看| 国产91高潮流白浆在线麻豆| 一本色道a无线码一区v| 欧美一级片在线看| 欧美国产精品v| 亚洲国产一区二区a毛片| 激情综合色播五月| 91在线国产福利| 欧美一区二区观看视频| 国产色产综合色产在线视频| 亚洲精品视频在线观看网站| 男女男精品视频网| 99国产一区二区三精品乱码| 51午夜精品国产| 成人免费一区二区三区在线观看| 亚洲成av人在线观看| 国产精品系列在线播放| 欧美丰满少妇xxxxx高潮对白| 国产女人水真多18毛片18精品视频| 亚洲免费三区一区二区| 国产精品一色哟哟哟| 欧美日韩国产bt| 亚洲欧美综合色| 久久99国产精品免费| 欧美亚州韩日在线看免费版国语版| 久久看人人爽人人| 亚洲成人综合网站| 91视频在线看| 日本一区二区三级电影在线观看 | 国产成人av在线影院| 欧美系列在线观看| 国产精品短视频| 狠狠色丁香婷婷综合久久片| 在线免费观看视频一区| 欧美激情一区二区三区蜜桃视频| 日韩高清国产一区在线| 欧美中文字幕一区二区三区| 国产日韩一级二级三级| 精品一区二区影视| 欧美精品一二三四| 亚洲人精品午夜| 不卡一区中文字幕| 国产日韩欧美精品综合| 另类的小说在线视频另类成人小视频在线| 不卡的av在线播放| 久久日韩精品一区二区五区| 亚洲国产精品久久久男人的天堂| 91在线观看地址| 成人欧美一区二区三区视频网页 | 精品一区二区三区视频| 欧美日韩另类一区| 一区二区三区.www| 99国产精品久久久| 国产精品丝袜久久久久久app| 精品无人码麻豆乱码1区2区 | 欧美一区二区三区免费大片| 一区二区三区久久久| 91视频免费观看| 亚洲情趣在线观看| 日本乱码高清不卡字幕| 1024成人网色www| 不卡av在线网| 中文字幕在线不卡一区二区三区 | 国产成人免费视| 国产欧美精品国产国产专区| 国产一区二区在线观看免费| 日韩一区二区三区电影在线观看| 视频一区在线播放| 欧美久久一区二区| 日韩高清在线观看| 精品精品欲导航| 国产精品99久久久久| 国产日韩精品久久久| jizzjizzjizz欧美| 一区二区三区四区高清精品免费观看| 99re热视频精品| 亚洲综合清纯丝袜自拍| 欧美日韩国产在线观看| 久久精品av麻豆的观看方式| 精品国产网站在线观看| 久久成人综合网| 日本一区二区视频在线| 91免费版在线看| 亚洲午夜久久久久久久久电影院| 欧美在线不卡一区| 人禽交欧美网站| 精品99一区二区三区| 国产成人三级在线观看| 亚洲欧洲中文日韩久久av乱码| 欧美三级日韩三级| 蜜桃视频免费观看一区| 久久久影视传媒| 日本韩国欧美在线| 麻豆91免费看| 亚洲色图视频网| 91精品国产91久久久久久一区二区 | 国产欧美一区二区精品性色| 99精品国产99久久久久久白柏 | 国产成人免费视频网站高清观看视频| 国产精品乱码一区二区三区软件| 在线观看日韩电影| 蜜桃视频在线观看一区| 国产精品久久久久久久裸模| 精品视频1区2区3区| 激情久久五月天| 亚洲精品自拍动漫在线| 精品久久久久久亚洲综合网| 成人av电影在线| 美女免费视频一区| 国产精品私房写真福利视频| 欧美日韩成人综合| 风流少妇一区二区| 亚洲人妖av一区二区| 99久久免费视频.com| 成人欧美一区二区三区视频网页| www.66久久| 久久精品国产免费| 亚洲女女做受ⅹxx高潮| 日韩欧美国产三级电影视频| 91在线精品一区二区三区| 另类小说欧美激情| 亚洲第一福利一区| 国产精品久久毛片| 日韩免费电影网站| 一本大道综合伊人精品热热| 国产精品自拍毛片| 日日噜噜夜夜狠狠视频欧美人| √…a在线天堂一区| 欧美一区二区美女| 欧美三级在线视频| 91偷拍与自偷拍精品|