当前位置: 首页 > news >正文

合肥搜索引擎推广工具类网站怎么优化seo

合肥搜索引擎推广,工具类网站怎么优化seo,比价 wordpress 插件,软件开发流程包括当显示一组JRadioButton时#xff0c;最初没有选择任何一个(除非您以编程方式强制执行)。我想要能够将按钮恢复到该状态#xff0c;即使在用户已经选择了一个之后#xff0c;即#xff0c;不应该选择任何按钮。然而#xff0c;使用通常的嫌疑不会提供所需的效果#xff1…当显示一组JRadioButton时最初没有选择任何一个(除非您以编程方式强制执行)。我想要能够将按钮恢复到该状态即使在用户已经选择了一个之后即不应该选择任何按钮。然而使用通常的嫌疑不会提供所需的效果调用’setSelected(false)’在每个按钮不工作。有趣的是当按钮未放入ButtonGroup时它会工作 – 不幸的是后者是JRadioButtons要求是互斥的。此外使用javax.swing.ButtonGroup的setSelected(ButtonModelboolean)方法不会做我想要的。我把一个小程序来展示效果两个单选按钮和一个JButton。单击JButton应取消选择单选按钮以使窗口看起来与它首次弹出时的完全一样。import java.awt.Container;import java.awt.GridLayout;import java.awt.event.*;import javax.swing.*;/*** This class creates two radio buttons and a JButton. Initially, none* of the radio buttons is selected. Clicking on the JButton should* always return the radio buttons into that initial state, i.e.,* should disable both radio buttons.*/public class RadioTest implements ActionListener {/* create two radio buttons and a group */private JRadioButton button1 new JRadioButton(button1);private JRadioButton button2 new JRadioButton(button2);private ButtonGroup group new ButtonGroup();/* clicking this button should unselect both button1 and button2 */private JButton unselectRadio new JButton(Unselect radio buttons.);/* In the constructor, set up the group and event listening */public RadioTest() {/* put the radio buttons in a group so they become mutually* exclusive -- without this, unselecting actually works! */group.add(button1);group.add(button2);/* listen to clicks on unselectRadio button */unselectRadio.addActionListener(this);}/* called when unselectRadio is clicked */public void actionPerformed(ActionEvent e) {/* variant1: disable both buttons directly.* ...doesnt work */button1.setSelected(false);button2.setSelected(false);/* variant2: disable the selection via the button group.* ...doesnt work either */group.setSelected(group.getSelection(), false);}/* Test: create a JFrame which displays the two radio buttons and* the unselect-button */public static void main(String[] args) {JFrame frame new JFrame();frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);RadioTest test new RadioTest();Container contentPane frame.getContentPane();contentPane.setLayout(new GridLayout(3,1));contentPane.add(test.button1);contentPane.add(test.button2);contentPane.add(test.unselectRadio);frame.setSize(400, 400);frame.setVisible(true);}}任何想法任何人谢谢
http://www.zqtcl.cn/news/523336/

相关文章:

  • 做境外碎片化旅游的网站wordpress wdcp
  • 整容医院网络建设公司seo实战技术培训
  • 免费服务器建立网站郑州seo线上推广系统
  • 医院网站建设的目的qq小程序源码
  • 郑州seo网站排名优化公司建站行业发展
  • 彭山住房和城乡建设局网站儒枫网网站建设
  • wap asp网站模板下载中企动力骗子公司
  • 中文电商网站模板洛阳网络公司排名
  • 国外毕业设计网站青岛seo服务
  • 自己做的网站怎么发布视频教程廊坊网站排名优化公司哪家好
  • 域名服务器都有了怎么做网站网站开发获取用户微信号登录
  • 淮南建设公司网站企业系统工程
  • 仓山福州网站建设佛山网站制作专业公司
  • 男男做的视频网站扬中网站建设案例
  • 做钓鱼网站用哪种编程语言代理网站备案
  • 广汉有没有做网站建设公司wordpress 301插件
  • 龙岗菠菜网站建设chatgpt网页
  • 如何查看网站ftp地址四川公共资源交易网招标网
  • 家居企业网站建设机构沈阳工程信息
  • 上海好的网站设计公司wordpress 上传文件路径
  • 用微信微博网站来做睡眠经济亚马逊跨境电商开店流程及费用
  • 网络公司做的网站根目录在哪网站建设必备条件
  • 网站建设外包服务管理情况公众号 链接wordpress
  • 深圳网站建设黄浦网络 技术差做网站的怎么跑业务
  • 青岛崂山区网站建设广东企业网站建设多少钱
  • 男女做那个的小视频网站韩国儿童才艺网站建设模板
  • 餐饮品牌网站建设淮北论坛最新招聘
  • 给客户做网站网站自动适应屏幕
  • 人力资源培训与开发什么是网站优化
  • 制作 网站 盈利农村自建房设计图一层平房