52094

3D Effect to buttons in java swing using nimbus

Question:

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/lkQ94.png" data-original="https://i.stack.imgur.com/lkQ94.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />I have used Nimbus to create rounded corners for buttons in swing referring here: <a href="https://stackoverflow.com/questions/22143648/use-nimbus-to-give-rounded-corners-for-jbutton/22143941?noredirect=1#comment33617392_22143941" rel="nofollow">Use Nimbus to give rounded corners for JButton</a>

I now want to give a 3d look to the buttons. How should I go about this using nimbus? i had gone through nimbus but coudnt find appropriate info

note: I have added image where button1 shows that I have used: generateButton.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));

and second with nimbus effect

Answer1:

This is more of a suggestion than an answer.

From looking at your previous questions it seems this button has been a problem for you. It seems your initial question regarding the button didn't include using Nimbus <em>at all</em> but was more just how to get the button look and functionality.

I might suggest instead of trying to mess with the look and feel, maybe just pick a look and feel that is to your liking. All of the one below can be found at <a href="http://sourceforge.net" rel="nofollow noreferrer">sourceforge</a>

<strong>SeaGlass LAF</strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/BgYOo.png" data-original="https://i.stack.imgur.com/BgYOo.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<strong>Liquid LAF</strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/5ihw6.png" data-original="https://i.stack.imgur.com/5ihw6.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<h2> JTattoo library has assorted LAFs you can choose from</h2>

<strong>JTattoo Acryl LAF</strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/LsZVr.png" data-original="https://i.stack.imgur.com/LsZVr.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<strong>JTattoo Graphite LAF</strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/eopV7.png" data-original="https://i.stack.imgur.com/eopV7.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<strong>JTatto McWin LAF</strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/Wl54h.png" data-original="https://i.stack.imgur.com/Wl54h.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<strong>JTatto Texture LAF</strong>

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/5YgSy.png" data-original="https://i.stack.imgur.com/5YgSy.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

<h2> Happy Searching!</h2>

Recommend

  • JPanel gets paintComponent gets called when child is entered
  • Design Button in Java (like in CSS)
  • Color of JOptionPane border
  • Saving data and creating a new panel without that data in it
  • How to change the color or background color of JSplitPane divider?
  • Putting 3 dots at the beginning of JLabel
  • set JButton size in gridLayout
  • Evaluate expression inside js function argument
  • Search a JTable repeatedly using JTextfield text
  • Plot Matlab colours as vertical bars
  • How to change JLabel when JButton is clicked? [duplicate]
  • Php last login time and current login time difference… Right or wrong?
  • How to display formatted numbers from a cell array with n decimal places
  • group by in Matlab to find the value that resulted minimum similar to SQL
  • Write a table object into csv in matlab
  • array by malloc on function lu decomposition
  • Bayes Network for classification in Matlab (BNT)
  • MATLAB: The exact size and position of the axis box in the case of `axis equal`?
  • AutoHotkey choking on same-line curly brace for compound if statements
  • Obtain IP Address from MAC using python
  • How to create vertical TitledBorder in JPanel (javax swing)
  • listbox isSelected databinding in DataTemplate
  • horizontal-vertical only lines
  • Tkinter button 'not defined' when ran
  • I can't show LinearLayout at bottom to scroll view
  • Passing matrices from function to function in MATLAB
  • How to dynamically reshape matrix block-wise? [duplicate]
  • Does Julia have something equivalent to Ans (Matlab) or Last.value (R)
  • Android Custom dialog inflating from layout - alignment issue
  • inputParser validation argument not acting as expected
  • countdown bar android example
  • vectorized indexing/slicing in numpy/scipy?
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • Python urlparse: small issue
  • FileReader+canvas image loading problem
  • Controls, properties, events and timers running in design time
  • Updated Ionic CLI but shows previous version (Windows)
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • python draw pie shapes with colour filled