亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美三级乱人伦电影| 在线精品视频免费观看| 国产电影一区二区三区| 成人综合激情网| 色综合久久中文综合久久牛| 欧美日韩你懂得| 精品国产99国产精品| 国产精品激情偷乱一区二区∴| 亚洲欧美日韩国产成人精品影院| 亚洲国产aⅴ成人精品无吗| 久久99在线观看| 99久久国产免费看| 日韩午夜中文字幕| 亚洲天堂免费看| 午夜精品在线看| 国产精品亚洲人在线观看| 国产不卡在线一区| 欧美浪妇xxxx高跟鞋交| 久久精品人人爽人人爽| 亚洲午夜精品一区二区三区他趣| 99精品视频在线免费观看| 欧美视频一二三区| 国产欧美一区二区在线| 日日夜夜精品免费视频| 国产成人在线看| 正在播放一区二区| 日韩毛片在线免费观看| 精品一区二区日韩| 欧美四级电影网| 国产精品午夜免费| 九九精品视频在线看| 91久久奴性调教| 精品久久久久久综合日本欧美 | 日韩一区二区免费电影| 中文字幕一区在线观看| 黑人精品欧美一区二区蜜桃| 91久久国产综合久久| 国产三级精品视频| 精品午夜久久福利影院| 欧美理论电影在线| 亚洲福利一二三区| 一本大道av一区二区在线播放 | 亚洲国产精品麻豆| 97精品国产露脸对白| 国产网站一区二区| 久久99久久久欧美国产| 日韩欧美高清dvd碟片| 日韩va欧美va亚洲va久久| 欧美伊人久久久久久午夜久久久久| 欧美久久久久中文字幕| 久久色.com| 久久疯狂做爰流白浆xx| 日韩片之四级片| 奇米影视一区二区三区| 91精品国产综合久久精品麻豆| 亚洲欧美偷拍三级| jlzzjlzz亚洲日本少妇| 欧美激情综合五月色丁香小说| 国产在线精品一区二区不卡了 | 欧美v亚洲v综合ⅴ国产v| 日韩av不卡在线观看| 9191国产精品| 日韩电影一区二区三区四区| 欧美福利一区二区| 免费观看成人av| 日韩久久久精品| 国产精品影视在线观看| 日本一区二区三区在线观看| 粉嫩蜜臀av国产精品网站| 中文字幕乱码一区二区免费| 成人午夜电影网站| 亚洲特黄一级片| 日本精品视频一区二区| 国产精品美女久久久久aⅴ | 首页欧美精品中文字幕| 欧美日韩成人综合天天影院| 日日摸夜夜添夜夜添精品视频| 日韩欧美久久一区| 日韩电影在线观看网站| 91精品欧美福利在线观看| 蜜桃视频在线观看一区二区| 亚洲精品在线网站| 北岛玲一区二区三区四区| 亚洲视频1区2区| 欧美一级视频精品观看| 国产成人av电影免费在线观看| 国产欧美精品区一区二区三区| 色综合激情五月| 日本不卡在线视频| 亚洲欧美综合另类在线卡通| 欧美亚洲自拍偷拍| 国产在线精品免费av| 亚洲免费在线观看视频| 99久久国产综合精品女不卡| 日本欧美肥老太交大片| 国产精品久久久久久亚洲伦| 欧美日本免费一区二区三区| 国产麻豆午夜三级精品| 亚洲精品老司机| 日韩一区二区在线观看视频| www.亚洲色图.com| 蜜臀av在线播放一区二区三区| 国产精品热久久久久夜色精品三区| 欧洲人成人精品| 国产成a人亚洲精品| 婷婷六月综合亚洲| 亚洲欧美日韩国产综合在线| 精品国产乱码久久| 欧美视频一二三区| 九九久久精品视频| 悠悠色在线精品| 国产亚洲美州欧州综合国| 在线观看91精品国产麻豆| 风间由美一区二区三区在线观看| 偷窥少妇高潮呻吟av久久免费| 国产精品伦理一区二区| 日韩女优视频免费观看| 欧洲视频一区二区| 91一区在线观看| 国产成人免费视频网站 | 麻豆91在线观看| 亚洲成人一区二区| 亚洲摸摸操操av| 欧美国产一区在线| 欧美精品一区二区在线播放| 777奇米四色成人影色区| 色婷婷综合久久久中文字幕| 秋霞av亚洲一区二区三| 久久精品欧美日韩| 亚洲精品一区二区三区精华液| 欧美一区中文字幕| 欧美日韩精品一区视频| 一本大道综合伊人精品热热| bt欧美亚洲午夜电影天堂| 高清久久久久久| 国产麻豆9l精品三级站| 韩国欧美国产1区| 麻豆视频一区二区| 麻豆免费精品视频| 日韩欧美成人一区| 欧美国产综合一区二区| 久久久久久久久久久久久久久99| 亚洲精品一线二线三线无人区| 亚洲国产高清在线| 日韩精品亚洲专区| 免费av网站大全久久| 一区二区三区日韩欧美精品| 欧美国产激情二区三区| 亚洲精品国产一区二区精华液 | 亚洲成人激情综合网| 奇米一区二区三区| 成人精品免费看| 欧美最猛性xxxxx直播| 欧美一区二区三区在线观看视频| 国产喂奶挤奶一区二区三区| 亚洲综合区在线| 欧美一区二区视频观看视频 | 国产亚洲精品aa| 亚洲夂夂婷婷色拍ww47| 国产精品99久| 欧美一区二区三区四区久久| 欧美va亚洲va国产综合| 中文字幕乱码亚洲精品一区| 亚洲www啪成人一区二区麻豆| 久久99九九99精品| 色综合婷婷久久| 精品欧美一区二区三区精品久久 | 7777精品伊人久久久大香线蕉最新版| www久久精品| 亚洲美女屁股眼交3| 激情文学综合插| 欧美在线高清视频| 国产喷白浆一区二区三区| 婷婷丁香激情综合| 99精品久久只有精品| 91精品综合久久久久久| 亚洲免费av网站| 国产精品综合av一区二区国产馆| 欧美日本精品一区二区三区| 中文字幕在线播放不卡一区| 国精产品一区一区三区mba视频 | 欧美三级电影在线观看| 国产精品免费人成网站| 激情成人综合网| 在线播放视频一区| 亚洲精品伦理在线| av午夜精品一区二区三区| 精品精品国产高清a毛片牛牛| 亚洲一区二区三区影院| 成人精品电影在线观看| 久久亚洲一级片| 美女高潮久久久| 欧美日韩亚洲高清一区二区| 亚洲美女视频一区| 97精品久久久午夜一区二区三区| 中文一区在线播放| 国产69精品一区二区亚洲孕妇 | 欧美日本乱大交xxxxx| 一区二区在线观看av| 99久久综合色|