JFrame: resize NO, buttons minimize / maximize YES, HOW???
hi fellows,
i want a JFrame which you can't resize, but when i set the option resizeable to false, the buttons at the top right disappear, except for the "X"
the minimize and maximize buttons are gone :-(
i want these back!!
or is there another way to prevent my frame from being resized?
thx in advance,
SpeciesXX
For me only the maximize button disappears because a maximize of the frame is a resizing of it. The minimize and close buttons are visible and working.
I'm not sure of how to accomplish that a frame shall not be resizable but able to be maximized, or if it's even possible.
//David
Similar Messages
-
Error with channel buttons (minimize, maximize, edit, etc)
Hi,
I'm trying to move production to another box (iPS SP2), I installed from scrach iPS, I copied all channels and user data succesfully and I can login ok, but when I minimize, maximize, edit a channel the requests are redirected to hostname.domain.com instead of www.myportal.com . If I do a "view source" the help link has hardcoded the hostname.domain.com/helppage.html but in my channel I have helpppage.html, I have tried using /helpppage.html but didn't work.
Any ideas what could be wrong ?
Thanks,
JoseHi,
Hope you have taken back up of "ldif" database of production box.
If the "hostname.domain.com" of the new box is different from the producion box, you need to edit the "ldif" file and change the "oldhostname.domain.com" with "newhostname.domain.name" before importing to the new box.
Thanks,
Raj_indts
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support -
Clean install of Firefox 4 on a clean install of Windows 7 there are no buttons in top right corner. No persona installed so https://bugzilla.mozilla.org/show_bug.cgi?id=574833 and https://bugzilla.mozilla.org/show_bug.cgi?id=575406 do no apply. Opening the menu bar with ALT does not resolve problem.
== This happened ==
Every time Firefox opened
== From a clean install on two seperate Windows 7 machines, one AMD one Intel both 32 bit. ==
== User Agent ==
Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b3pre) Gecko/20100728 Minefield/4.0b3preDo you have the Tab Candy version?
I had the same problem so I decided to just use the normal beta version instead of the Tab Candy one and that fixed it. -
Window buttons (minimize, maximize and close) vanish when maximized
Started recently, no extras installed. Win7 running the latest Firefox 31.0.
Hello,
Welcome to MSDN forum.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
http://forums.asp.net/
for better solution and support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
when FF 3.6.8 loads it loads everything except the the classic window buttons (minimize, maximize and exit ) do not appear in the top right hand corner as the normally would. it seems as though the page has been cut off or the monitor screen is to little for the whole page to load.
It is possible that the screen is too wide or too high.
Open the system menu via Alt+Space and see if you can resize that window.
If that works then close Firefox to save that setting.
See also http://kb.mozillazine.org/Resizing_oversize_window -
I need to remove "minimize, maximize, close" buttons on full screen mode
I can remove all buttons (like refresh, back, forward, address bar, etc..) but the little right 3 buttons "minimize, maximize, close" i cant remove, how can i make with userChrome.css or other option.
Because i can close firefox exiting from fullscreen and clicking on archive menu with "Alt" key.
I dont wanna this little 3 buttons, that i can hide and show permanent.
I hope explain me correctly
Thanks a lotAdd code to userChrome.css below the default @namespace line.
*http://kb.mozillazine.org/userChrome.css
<pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#autohide-context { display:none!important; } /* hide context menuitem "Exit Full Screen Mode" */
#window-controls { display:none!important; } /* hide window controls in full screen mode */
</nowiki></pre> -
I have been using FF for a while now. My main computer was WinXP-32, though I recently bought a new laptop with Win7-64 installed. This problem was never experienced on my WinXP machine.
Brief description of problem:
After a time of having FF up and running, the minimize/maximize/restore/close buttons in the top-right no longer work as expected and, if not maximised, I cannot move the window around my desktop nor resize the browser window. When clicked, the buttons will
rapidly flash on and off continuously without appearing to perform any noticeable function other than temporarily hogging CPU cycles. I've found that clicking (sometimes double clicking) in the main browser window then mousing over the buttons again seems
to stop them flashing, though does nothing else.
To minimize/maximize/restore/move/close the window(s), I have to right-click on the relevant tab in my taskbar and pick the desired option. Occasionally, however, even this doesn't work and the right-click menu will disappear as soon as I move the mouse
over it after right-clicking. 'Show desktop' is a temporary fix for minimising windows and 'ALT + F4' or 'CTRL + W' for closing windows or tabs. This isn't satisfactory and to move or resize a window, I have to close the window in question (sometimes all other
windows too), reopen it and do what I need to do, though sometimes even this is only a very short fix. If I have to close all the windows, FF will sometimes keep running for a while afterwards, even though no windows are actually open - simply ending the process
via the windows task manager will fix this though is only a work-around, not a fix.
One thing I have noticed is that if I manage to move the browser window (when not maximised), for a short period afterwards I can often resize the window successfully. This is more likely to occur if the browser window is not flush with the edge of my screen
once moved.
I've tried to include as much information as I can - most of which was determined after several minutes/hours of playing around with different scenarios, trying to manually reproduce particular problems or simply through sheer luck of happening to click
in the right place at the right time! I hope there is a reasonably fix for this at some point in the not-too-distant future.
I noticed in some of the threads at another site where people have voiced problems similar to mine, that a link to 'ObjectDock' was discovered in some cases. I do have 'ObjectDock 1.90 Plus' installed on my machine and use it in many ways and so decided
to see if I could find a connection between the two. I have uninstalled, tested, and reinstalled both programs in a multitude of ways, though could find no conclusive correlation between having both bits of software running or installed at the same time and
the problems I am experiencing. In my case, at least, this does not appear to be an answer.
Also, in another thread on this site, someone suggested there might be a link with AVG Anti-Virus Free (I have version 9.0.819) though I've tried uninstalling it and its various add-ons in several different combinations, with no noticeable improvement.
Sorry for such a long question... If you need to know anything more, just let me know!
- James
System Information:
Operating System: Windows 7 (64 bit)
Firefox Version: 3.6.3
Application Basics
Name
Firefox
Version
3.6.3
Profile Directory
<button onclick="openProfileDirectory()"> Open Containing Folder </button>
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Update Service
1.2
true
[email protected]
Java Console
6.0.17
true
{CAFEEFAC-0016-0000-0017-ABCDEFFEDCBA}
Adblock Plus
1.2
true
{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
Download Statusbar
0.9.6.8
true
{D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389}
Cooliris
1.11.6
true
[email protected]
FoxTab
1.3
true
{ef4e370e-d9f0-4e00-b93e-a4f274cfdd5a}
Save File to
2.0.1
true
[email protected]
1-Click YouTube Video Downloader
1.4
true
[email protected]
British English Dictionary
1.19
true
[email protected]
Tab History
1.0.7
true
{84417002-6445-49b4-9fd7-1ef48240fa41}
Universal Print
0.4.23
true
{BE2100B3-1D80-48eb-ACCF-D26750644378}
Active Stop Button
1.3.0
true
{9e96e0c4-9bde-49b7-989f-a4ca4bdc90bb}
Fission
1.0.9
true
{1280606b-2510-4fe0-97ef-9b5a22eafe41}
Smart Bookmarks Bar
1.4.3
true
[email protected]
Compact Menu 2
3.1.1
true
{57068FBE-1506-42ee-AB02-BD183E7999E4}
Menu Editor
1.2.6
true
{EDA7B1D7-F793-4e03-B074-E6F303317FB0}
Locationbar²
1.0.5
true
[email protected]
RealPlayer Browser Record Plugin
1.0
true
{ABDE892B-13A8-4d1b-88E6-365A6E755758}
AVG Safe Search
9.0.0.812
true
{3f963a5b-e555-4543-90e2-c3908898db71}
Searchbar Autosizer
1.4.5
true
{655397ca-4766-496b-b7a8-3a5b176ee4c2}
Open Bookmarks in New Tab
0.1.2010043001
true
[email protected]
Remove New Tab Button
1.0
true
[email protected]
New Tab Homepage
0.4.2
true
{66E978CD-981F-47DF-AC42-E3CF417C1467}
SwiftTabs
0.3.6.8
true
{5F4EC95A-FFA8-11DE-898C-667D55D89593}
Tab Kit
0.5.8
true
[email protected]
Hide Find Bar
1.3.1
true
[email protected]
Toolbar Buttons
0.6.0.8
true
{03B08592-E5B4-45ff-A0BE-C1D975458688}
Java Console
6.0.19
true
{CAFEEFAC-0016-0000-0019-ABCDEFFEDCBA}
View Cookies
1.10.1
true
{8F6A6FD9-0619-459f-B9D0-81DE065D4E21}
Adobe DLM (powered by getPlus(R))
1.6.2.63
true
{E2883E8F-472F-4fb0-9522-AC9BF37916A7}
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar
0
browser.history_expire_days.mirror
180
browser.places.importBookmarksHTML
false
browser.places.smartBookmarksVersion
2
browser.startup.homepage
http://www.bath.ac.uk/
browser.startup.homepage_override.mstone
rv:1.9.2.3
browser.tabs.closeButtons
0
browser.tabs.tabMinWidth
77
browser.tabs.warnOnClose
false
extensions.lastAppVersion
3.6.3
network.cookie.prefsMigrated
true
network.http.pipelining
true
network.http.pipelining.maxrequests
50
network.http.proxy.pipelining
true
places.last_vacuum
1271706454
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.timeSpan
0
security.warn_viewing_mixed
false
security.warn_viewing_mixed.show_once
falseHi Kossa,
You can also check if the issue occurs in
Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
Besides, uninstall it and re-download
a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
J
Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
regarding this product's performance or reliability.
Regards,
Linda -
FF29 on win7: the minimize/maximize/close buttons are MIA, as is the page title bar. I've restored 28 because Australis is driving me nuts!
You should not have to restore the Firefox 28 release. There is a solution: Classic Theme Restorer. https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/
-
How do I make the minimize/maximize/close buttons smaller?
I want to make the minimize - maximize - close/exit buttons on the right smaller. What's the css code to do this?
Solved it.
In Windows 7:
Right click desktop >
Go to Personalize >
Click WIndow Color (Custom) >
Click Advanced Appearance Settings >
Find Caption Buttons and change the size to your liking!
I like it at size 18, as it doesn't take up as much space. -
How to relocate the Minimize, Maximize and Close buttons on the window
I am a right-hand user, and would prefer if all my Minimize, Maximize and Close buttons on the window are relocated to the right hand side of the window. Anyone got any suggestion to do it ?
This is just something you end up getting used to, at least it was the case for me.
It is not possible to move this, without the help of third-party software.
ShapeShifter is offers customisation of the look of the Windows, but I don't know if it can move the buttons.
http://www.unsanity.com/haxies/shapeshifter
But I don't know if it is compatible with Leopard yet. -
Modal Frame or Dialog with Minimize/Maximize buttons
I want to create a window (dialog or frame) that is modal and has the minimize/maximize buttons. Is it possible? How?
I normally would use a dialog if I wanted the window to be modal, but a dialog does not have the minimize/maximize buttons. I normally would use a frame if I wanted the window have the minimize/maximize buttons, but a frame cannot be modal.
Any suggestions, please?You can make your "modal panel" listener the window events from all others frames:
public class YourModalFrame extends JFrame implements WindowListener{
public YourModalFrame(JFrame owner){
super("Modal Frame");
this.owner = owner;
// we put a glass panel into the main frame
JPanel glassPanel = new JPanel();
glassPanel.setOpaque(false);
glassPanel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
// blocking the events!!!
glassPanel.addKeyListener (new KeyAdapter() {});
glassPanel.addMouseListener (new MouseAdapter() {});
glassPanel.addMouseMotionListener(new MouseMotionAdapter(){});
owner.setGlassPane(glassPanel);
// the frame will listener owner windows events
owner.addWindowListener(this);
// Window Listener //
* Invoked the first time a window is made visible.
public void windowOpened(WindowEvent e){}
* Invoked when the user attempts to close the window
* from the window's system menu. If the program does not
* explicitly hide or dispose the window while processing
* this event, the window close operation will be cancelled.
public void windowClosing(WindowEvent e){}
* Invoked when a window has been closed as the result
* of calling dispose on the window.
public void windowClosed(WindowEvent e){}
* Invoked when a window is changed from a normal to a
* minimized state. For many platforms, a minimized window
* is displayed as the icon specified in the window's
* iconImage property.
* @see java.awt.Frame#setIconImage
public void windowIconified(WindowEvent e){
// Do you want this too?
//super.setState(JFrame.ICONIFIED);
* Invoked when a window is changed from a minimized
* to a normal state.
public void windowDeiconified(WindowEvent e){
if(super.getState() == JFrame.ICONIFIED)
super.setState(JFrame.NORMAL);
this.requestFocus();
* Invoked when the window is set to be the user's
* active window, which means the window (or one of its
* subcomponents) will receive keyboard events.
public void windowActivated(WindowEvent e){
this.requestFocus();
* Invoked when a window is no longer the user's active
* window, which means that keyboard events will no longer
* be delivered to the window or its subcomponents.
public void windowDeactivated(WindowEvent e){}
} -
Minimize/Maximize/Resize
Guys, right now I have setResizable(false) however I only intended this would prevent the user from "dragging" at the corner of the window making it as big as they want. But it also prevents the "Minimize" and "Maximize" buttons from working. Is there a way I can restrict freeform window resizing, but still allow maximize and minimize?
Try this, but there's probably better ways
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class Testing extends JFrame implements ComponentListener
Container frame;
public Testing()
setTitle("Test GUI");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame = getContentPane();
frame.addComponentListener(this);
setSize(400,300);
setLocationRelativeTo(null);
setContentPane(frame);
public void componentResized(ComponentEvent ce)
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
if(Math.abs(frame.getWidth() - dim.getWidth()) > dim.getWidth()/20 &&
Math.abs(frame.getHeight() - dim.getHeight()) > dim.getHeight()/20)
setSize(400,300);
public void componentHidden(ComponentEvent ce){}
public void componentMoved(ComponentEvent ce){}
public void componentShown(ComponentEvent ce){}
public static void main( String args[] ){new Testing().setVisible(true);}
} -
How to resize the components in a JFrame when the JFrame Resizes?
Hi all,
i have some problems with my app. I have set the JFrame resizable and that works fine for the JFrame but not for the components in the JFrame.
So my question is how can i set the components in a JFrame to resize automatically when the JFrame resizes?
Here are the important things from my code,...if you need more, just let me know, its my first post in a forum .
Its a JFrame with a JTabbedPane and on the Tabs are Panels with buttons and Tables.
Thank you in advance!
public class MainMonitor extends JFrame {
public MainMonitor() {
super();
initialize();
setVisible(true);
private void initialize() {
this.setSize(1145, 785);
this.setIconImage(Toolkit.getDefaultToolkit().getImage("Images/c.gif"));
this.setContentPane(getJContentPane());
this.setTitle("Company Manager");
this.setResizable(true);
this.setLocationRelativeTo(null);
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.setOpaque(true);
jContentPane.add(getJTabbedPane(), null);
jContentPane.add(getJPanel11(), null);
return jContentPane;
private JTabbedPane getJTabbedPane() {
if (jTabbedPane == null) {
jTabbedPane = new JTabbedPane();
jTabbedPane.setLocation(new Point(6, 69));
jTabbedPane.setSize(new Dimension(1120, 684));
jTabbedPane.addTab("P", null, getJPanel(), null);
jTabbedPane.addTab("K", null, getJPanel1(), null);
jTabbedPane.addTab("B", null, getJPanel2(), null);
return jTabbedPane;
Giasaste wrote:
Thanks a lot, i didnt knew that the Layout Manager is a must.It's not a must, but it is the way to allow your app to be resized nicely and makes it much easier to maintain and enhance your program. Imagine creating a complex gui then later decide that you want another radiobutton and to remove a jlabel / jtextfield pair. with layout managers a chore becomes easy. -
After a bunch of browsing, a black window takes over the windows caption bar and covers the minimize, maximize, and close buttons. When this happens, I can't close firefox except by accessing the firefox menu. And there is no way to minimize or maximize the window.
Try the Firefox SafeMode to see how it works there. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
* You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''Don't select anything right now, just use "Continue in SafeMode."''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
'''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
''When you figure out what is causing that, please let us know. It might help other user's who have that problem.'' -
I can get Firefox to open and sometimes even browse properly for a few moments, but then I can't click on anything. Or, more accurately, I will click but then nothing happens. I can't even exit out of Firefox, because when I click on the minimize/maximize buttons or the red x, nothing happens. I then have to exit using ctrl/alt/delete, but the task handler even then claims that Firefox is running properly. I ctrl/alt/delete my way out anyway.
I've done everything I can think of. I've checked for updates, run CCleaner, defragged, run disk cleanup, and checked for malware. This persists in happening, but only in Firefox, not in IE.
I should mention I'm on a Dell laptop.Oh thank you for posting on how to enter safe browsing! I had tried to disable add-ons, but couldn't make anything click to do so. So frustrating!
Anyway, after putting on the safe browsing, it worked *immediately*, so clearly the add-ons were the issue! I deleted a bunch I don't use anyway, and it's been working fine for hours.
Thank you!!
Maybe you are looking for
-
can anyone help me out?
-
The leading zero in serial number..
Hi all, Does anyone happen to know how to stop SAP from erasing the leading zero when entering a Serial number. I'm using profile 0003 (standard) and when a GR is posted the leading zeros are removed? Any help would be greatly appreciated. Best regar
-
MySQL Error! The Error returned was: Data too long for column 'useragent' at row 1 Error Number: 1406
-
Hey all, I recently purchased a new iMac 20" intel core duo. I placed a few 720p HD QT files on it from my G4 12" laptop. These files work fine on the laptop but do not work fine on the Intel iMac (white screen, QT sends me to the 3rd party lug-in pa
-
Idoc nested segment fields update
Hi all, I have a requirement like this I have an IDOC say DOC1 DOC1 has a segment say SEG1 SEG1 has a child segment say CLD1 CLD1 has a filed say FLD1 . i need to update the data in field FLD1. can any one please tel me how to read data in the FLD1