GVKun编程网logo

绘制一个看起来像JLabel的JButton(或至少没有按钮边缘?)

24

对于想了解绘制一个看起来像JLabel的JButton的读者,本文将提供新的信息,我们将详细介绍或至少没有按钮边缘?,并且为您提供关于25个看起来像Flash实现的交互式HTML网站、5个看起来像Ma

对于想了解绘制一个看起来像JLabel的JButton的读者,本文将提供新的信息,我们将详细介绍或至少没有按钮边缘?,并且为您提供关于25 个看起来像 Flash 实现的交互式 HTML 网站、5个看起来像 MacOS 的 Linux 发行版、c# – WPF:创建一个看起来像Visual Studio 2010的应用程序、CSS:设置一个复选框,看起来像一个按钮,是否有悬停?的有价值信息。

本文目录一览:

绘制一个看起来像JLabel的JButton(或至少没有按钮边缘?)

绘制一个看起来像JLabel的JButton(或至少没有按钮边缘?)

我有一个JButton,出于各种原因,我想充当按钮,但看起来却像JLabel。实际上,它不一定必须是JLabel,我只是不希望显示凸起的按钮边缘。

是否有一种简单的方法可以关闭JButton的“按钮外观”,但保留所有按钮功能?

我可以构建某种组合的子类超级按钮,将其委托给jlabel进行显示,但我真的希望有类似的东西button.lookLikeAButton(false)

答案1

小编典典

您将需要执行以下操作:

        setFocusPainted(false);        setMargin(new Insets(0, 0, 0, 0));        setContentAreaFilled(false);        setBorderPainted(false);        setOpaque(false);

setFocusPainted(false)如果希望它实际绘制焦点,则可能要排除(例如Windows外观上的虚线边框)。

我在需要“仅图标”按钮的情况下使用了上面的代码。

25 个看起来像 Flash 实现的交互式 HTML 网站

25 个看起来像 Flash 实现的交互式 HTML 网站

Salt Surf

View the website

Blacknegative

View the website

Beyonce

View the website

TAG Interativa

View the website

Lend Your Leg

View the website

Michel Doudin

View the website

OATBook

View the website

Mercedes-Benz A-Class

View the website

Martin Gauer

View the website

Team Viget

View the website

Adidas Design Studios

View the website

Keystone Logistics

View the website

Ben the Bodyguard

View the website

Twenty8Twelve

View the website

Planoform

View the website

The Kitchen Community

View the website

X-Doria

View the website

Kolonien

View the website

Socket Studios

View the website

Love & Luxe

View the website

Evolution Bureau

View the website

A Book of Beards

View the website

Blind Barber

View the website

Nike Better World

View the website

via line25

5个看起来像 MacOS 的 Linux 发行版

5个看起来像 MacOS 的 Linux 发行版

既想使用 Linux,又想同时使用 Mac ?那么你可以尝试这些 Linux 发行版,你肯定会觉得自己在用 Mac 系统。

1. Elementry OS

Elementry OS 是看起来像 Mac OS 的最好的 Linux 发行版。和 Mac 一样,这个操作系统也是为了保护隐私而设计的。因此你会得到像 Mac 一样的功能。下面屏幕上的图标会给你一种像 Mac 一样的感觉。

Elementary Linux Desktop Distribution

系统要求

  • 4 GB RAM
  • Intel i3
  • 15 GB SSD
  • Stable internet connection

2. Deepin Linux

Deepin Linux 是下一个最好的替代Mac OS Linux 方案。

Deepin Linux 是最具有定制性的 Linux 版本之一。

Deepin Linux Distribution

系统要求

  • CPU: Intel Pentium IV 2GHz or higher
  • Memory: more than 2G RAM, Recommended 4G or higher
  • Disk: Approx 25 GB free disk space.

3. Zorin OS

Zorin OS 是 Mac 和 Windows 的组合。免费版本具有基本布局,但是如果您想应用 MAC 布局,您将必须为此支付少量费用。

ZorinLinux Distribution

系统要求

  • CPU: 1 GHz Dual Core – Intel/AMD 64-bit processor
  • RAM: 2GB or more
  • Disk: 10 GB (Core & Education) or 20 GB (Ultimate)
  • Display: 800 × 600 resolution minimum

4. Ubuntu Budgie

Ubuntu Budgie 是一个结合了 Ubuntu 和 Mac OS 的 Linux 发行版。大家都知道 Ubuntu 和 Mac OS 非常相似。只是少了几样东西。

Ubuntu Budgie Linux Distribution

系统要求

  • CPU: 64-bit capable Intel and AMD processors
  • RAM: 4GB or more

5. Solus

是一个不错的操作系统,看起来完全像 Mac。Solus 操作系统有一个漂亮的 budgie 视图,这将使整个操作系统看起来更棒。

Solus Linux Distribution

系统要求

  • CPU: 64-bit processors
  • RAM: 2GB or more
  • Disk: A minimimum 10GB of SSD/HDD

我的开源项目

酷瓜云课堂 - 开源在线教育解决方案

  • course-tencent-cloud(酷瓜云课堂 - gitee仓库)
  • course-tencent-cloud(酷瓜云课堂 - github仓库)

c# – WPF:创建一个看起来像Visual Studio 2010的应用程序

c# – WPF:创建一个看起来像Visual Studio 2010的应用程序

如何使用看起来像Visual Studio 2010的C#创建桌面应用程序?

Here’s an example

>您可以使用哪些开发环境?
>您能推荐任何样品,教程或博客吗?

编辑:

我想我找到了我要找的东西…… http://wpfthemes.codeplex.com/.谢谢大家的回答.

解决方法

该视频显示了VS的插件,但基本答案是WPF.

CSS:设置一个复选框,看起来像一个按钮,是否有悬停?

CSS:设置一个复选框,看起来像一个按钮,是否有悬停?

我创建了一个小型的按钮来显示,而不是一个复选框。我想知道有没有办法也可以:hover看起来不知何故?谢谢

http://jsfiddle.net/zAFND/2/

解决方法

#ck-button:hover {
    background:red;
}

小提琴:http://jsfiddle.net/zAFND/4/

今天关于绘制一个看起来像JLabel的JButton或至少没有按钮边缘?的分享就到这里,希望大家有所收获,若想了解更多关于25 个看起来像 Flash 实现的交互式 HTML 网站、5个看起来像 MacOS 的 Linux 发行版、c# – WPF:创建一个看起来像Visual Studio 2010的应用程序、CSS:设置一个复选框,看起来像一个按钮,是否有悬停?等相关知识,可以在本站进行查询。

本文标签: