Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 851526 Details for
Bug 1053303
Java (Swing/AWT) windows look unfocused when focused (grey title bar and close button)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Simple demo illustrating the issue.
FocusBorderDemo.java (text/x-java), 1.38 KB, created by
Severin Gehwolf
on 2014-01-17 11:50:44 UTC
(
hide
)
Description:
Simple demo illustrating the issue.
Filename:
MIME Type:
Creator:
Severin Gehwolf
Created:
2014-01-17 11:50:44 UTC
Size:
1.38 KB
patch
obsolete
>import java.awt.Container; >import java.awt.BorderLayout; >import javax.swing.JPanel; >import javax.swing.JTextArea; >import javax.swing.JScrollPane; >import javax.swing.JFrame; > >public class FocusBorderDemo { > JTextArea output; > JScrollPane scrollPane; > > public Container createContentPane() { > //Create the content-pane-to-be. > JPanel contentPane = new JPanel(new BorderLayout()); > contentPane.setOpaque(true); > > //Create a scrolled text area. > output = new JTextArea(5, 30); > output.setEditable(false); > scrollPane = new JScrollPane(output); > > //Add the text area to the content pane. > contentPane.add(scrollPane, BorderLayout.CENTER); > > return contentPane; > } > > private static void createAndShowGUI() { > //Create and set up the window. > JFrame frame = new JFrame("FocusBorderDemo"); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > > //Create and set up the content pane. > FocusBorderDemo demo = new FocusBorderDemo(); > frame.setContentPane(demo.createContentPane()); > > //Display the window. > frame.setSize(450, 260); > frame.setVisible(true); > } > > public static void main(String[] args) { > javax.swing.SwingUtilities.invokeLater(new Runnable() { > public void run() { > createAndShowGUI(); > } > }); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1053303
: 851526 |
851529
|
851530
|
851531