I'm using Vista, my old Java app ran on Win XP has thin borders, about 2 pixels thick, but now on Vista, the borders deafults to thick lines, maybe 6,7 pixels thick, can I specify in Java how thick my JFrame borders should be ?
How to adjust JFrame border thickness in Java
2.7k Views Asked by Frank At
1
There are 1 best solutions below
Related Questions in WINDOWS-VISTA
- Program compiled on Windows Vista is flagged for Win32/Wactac.B!ml by Windows Defender on Windows 10
- After changing the password on an email account useing RoundCube cannot get emails to be received or sent
- Could not find a version that satisfies the requirement flask-restfull (from versions:)
- Cannot Use Time.Sleep In Python
- Android Studio: Error: module not specified but can't select a module to choose
- Is it possible to detect that a log-off has been aborted on windows?
- Can't deploy basic android app with Android Studio on Windows Vista with JDK 8
- How to install postman in windows server 2007 SP2 (windows vista)
- C++ use d3d11 under Windows Vista
- Simple Javascript Code it's not working in Windows Vista
- Standard location of system-wide configuration files of an app?
- How do i find the path to startup folder?
- Reminder emails sent to AOL email addresses are blank
- Windows Vista Icon Library
- WinForms Vista style tool strip
Related Questions in JFRAME
- Frame showing up super small Java Swing
- JComponent added to JPanel doesn't appear?
- Java paintComponent not display background image on JFrame
- How to add good quality image to JFrame?
- repaint() leaves trace of object initial position
- JFrame does not show anything before maximizing
- How to creating a transparent, borderless, full-screen JFrame overlay in Java swing
- How to Implement SRCAND with Java?
- Coding battleship in java using Jbuttons in a Jframe
- How do I colorize the text in a JFrame Title bar
- Java : How to display a label inside a Jframe component
- Problems with moving an object in Java Swing
- Get accurate coordinates within JPanel in a JFrame
- table is not visible in the window. How to fix it?
- Why does my ImageIcon disappear after using setLocation() on JFrame?
Related Questions in BORDER
- How do I add visual border, from image, that is flexible and scalable?
- set some custom csss styles in Leadpages
- I have some picture box and I don't want my main character to touch it like to stop moving
- How to prevent overflowing border creating a horizontal scroll bar?
- Node border width control in Netgraph
- create a consistent border with CSS border-image
- Remove specific border inside a table
- is there a way to make the hover function fill space follow border lines below its block element
- Why does adding a border to a parent div change its size to contain the margin of its children but not when it doesn't have border?
- Border-Top on only second nav ul li
- decorative two-colored border (css)
- Hi, I am not able to see the CSS effect on the web browse to HTML file using Visual code. I can run HTML file in chrome and can see login page
- SWT button has border by default
- Having trouble applying border images
- Border radius to create curved div
Related Questions in THICKNESS
- CSS Underline using pseudo styles - thickness changes on position change issue
- DT table header line thickness
- Plotly: Line thickness is greater than expected. Why?
- How to bold/thicken state border on maps made in R while including county borders?
- How to calculate thickness of a tube-like 3D mesh with a hole in Python or Meshlab?
- Can we do the distance transform from one boundary to another?
- How to add a Thick bottom border across multiple cells every 9th row,
- How to find the distance to boundaries using an existing and refined medial axis?
- Adding boundary thickness parameter to the given circle code
- Calculating thickness of 3D geometry of a model
- How do I change the border size for a table in Dear ImGui?
- Three js line thickness
- Extra space - where does it come from?
- Thickness of axes in Manim plot
- Three JS how to add color and line thickness to mesh loaded with GLTFLoader
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
By default borders are handled by the native windowing system. But in the JFrame API there is a method
setDefaultLookAndFeelDecorated(boolean). It says that if set to true and if the current look and feel supports it, it will use the look and feel to draw the borders, title and buttons. I haven't ever tried this, since I don't know which look and feels support decoration. The first thing would be to find one that does, then set that via theUIManageror command-line-Ddefault.lafargument, and turn on look and feel decoration via the JFrame method.If you use this option though, you'll probably get non-standard looking window decoration. Given the little bits of Vista eye candy (glow on hover over the buttons and the translucent title bar), are you sure you want to do that?
Another option is to use the
JFrame.setUndecorated(boolean)method and handle rendering of borders, title bar, etc. yourself, but that's probably even more difficult.