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
- Issues in Vagrant setup on Windows Vista 32bit
- PowerShell and UAC in Windows Vista
- Side-by-side configuration exception / VC++ runtime issue with SQL CE and Vista
- How to change PATH in windows OS via cmd
- bootstrap modals works extremely slow on IE8 on windows vista
- python IDLE shell appears not to handle some escapes correctly
- .NET Framework Windows Vista & 7 Features
- Can't get a reference to IPart
- Visual studio 2005 crashes attempting to add new project setting in Project Settings pane. How to fix?
- Denial of permission while deleting SQL Server 2005 Express database file on Vista
- How do I speed up Windows Vista 64 for use with Visual Studio 2008?
- can i install and use, visual studio 2008 and visual studio 2010 on the same windows xp/vista
- Erron::EACCESS error
- Microsoft Visual Studio 2008 C++ error LNK2001, Windows Vista 64 bit
- WebSphere MQ windows-to-windows authentication with Java classes
Related Questions in JFRAME
- Running batch fine onclick delay
- timer in Jframe restart
- Dont see anything inside my jframe
- Components won't show up on JFrame
- Java Swing Drawing Rectangles
- Use JFrame (or external equivelant) on Android
- JPanels will not show up in JFrame
- While passing a variable to another class in java netbeans automatically generating extra zeroes?
- Why won't my Jbutton do anything on click?
- Java jar File error message Exception in thread "AWT-EventQueue-0"
- Multiple RadioButtons Simulator
- Java repaint() not calling paintComponent
- Changing from JFrame to JApplet
- SwingWorker calls a JFrame Class ..window shows nothing
- Whitespaces on JLabel Arrays causes project to become unaligned
Related Questions in BORDER
- css - triangle borders 100% of screen
- JavaFX Tooltip - border color bug
- Wrong dashed outline around a <div>
- Draw lines between divs using css border
- (Java) There are white borders around all my buttons
- Browsers truncate border values to integers
- How to make a border bottom on the right side of the element?
- VBA borders error - exact code by recorder not working
- Why does the box come out like this (padding/border/margin)?
- How to reduce table border thickness?
- Do not add border first time HTML
- Border some cells in table via CSS
- CSS: How to set up border radius cross browser (only IE8 and IE9 missing ?)
- Why has my border disappeared from around my text?
- Create a border around image when active/clicked
Related Questions in THICKNESS
- How to reduce table border thickness?
- Why is XAML "Thickness" invalid because the expected type is "Thickness" when the actual type is indeed "Thickness"?
- How do I change the border size for a table in Dear ImGui?
- Extra space - where does it come from?
- How to adjust JFrame border thickness in Java
- Set the thickness width of the blinking cursor
- CGAL - Extracting 2D contours form a sequence of segments
- How to add a Thick bottom border across multiple cells every 9th row,
- Three JS how to add color and line thickness to mesh loaded with GLTFLoader
- How to change the thickness & colour of the <hr> tag?
- Line thickness ggplot - looks discrete
- can the CImg library draw thick lines
- WPF Border Thickness increase direction
- Thickness of axes in Manim plot
- iOS, OpenGL ES. Line thickness on retina screen?
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 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.