Question to Swing Pros: Resizing of JFrame only with visible Rectangular  ?

Hello folks,
quite below is the quoted text message is from Java Substance Forum: http://www.nabble.com/Removing-top-left-substance-menu-and-deactivating-Background-painting-while-Resizing-a-Frame--to17775101.html
Is it somehow possible to use substance or another LooknFeel with custom titelbar and still keeping a hidden JFrame background resizing? So if i resize a JFrame only a rectangular should be visible not the content of the window should dynamically resize.
That would be a general Swing question to ask in Swing forums on java.net or on java.sun.com
Thanks
Kirill
----- Original Message ----
From: PEL <liquidc4d@...>
To: users@...
Sent: Wednesday, June 11, 2008 9:07:36 AM
Subject: Re: Removing top left substance menu and deactivating Background painting while Resizing a Frame?
2. You would notice in your screenshots that you're running Substance
under decorated mode, but Metal (and Windows) under undecorated mode
(title pane coming from OS). Try running your app under decorated mode in
Metal and see if the dynamic resizing is the same.
Ok with decorated(false) the resizing of the frame shows only a border not
the whole background of the frame, but then i have no stunning
Glas3DDecoration painter :D
Is it somehow possible to use substance with 3dglass titelbar and a hidden
jframe background resizing?

I've never seen a way to do that in Swing normally.
Of course, if you could run something allowing transparent windows (some newer version of Java will support it, or Skin L&F, etc), I can imagine how you might fake it by using your own decorations, and on resize, create a transparent window with a border that is your resize window, and use that to resize, and then fix the final size to the real window when done.

Similar Messages

  • Premiere Pro CC import problem only with last .VOB file

    When I import .VOB files from any DVD into Premiere Pro CC, the last .VOB always cut picture from both sides. When I click to see properties of the file (in Bin panel) it shows me that image size is 540 x 576 instead of 720 x 576. The video isn't shrunken but cut off. I got two black bars on both sides of the screen (in Premiere Pro CC). That wasn't happened with CS6 and now it happens always and only with last .VOB file. All other files from same VIDEO_TS folder are imported correctly. When I convert that last .VOB to .avi or any other format everything is OK. Any suggestions?

    Yes it works, but I have no time to convert file every time I need something archived that way. I used that method years ago, and if I'm not wrong we are progressing a little Most of today options you have in Premiere 5 (maybe even in earlier versions; I'm using it from version 5.1) and it worked. So if you think like that, why we need version 7.2.1 ? Actually this is 14.2.1 version if you count from version 1 back in 1991.
    It's not about to manage, it's about to have what you pay for, it's about to speed up the process.
    Thank you anyway for your comment

  • Resize a JFrame to specific proportions

    Does anyone know how you can resize a JFrame to specific proporties, ie the proportions that it was first created with ?
    Thanks a lot,
    Alex.

    Swing related questions should be posted in the Swing forum and since you've already asked this question in the Swing forum there is no need to crosspost.

  • My Laserjet Pro 400 will fax only the top on third of the fax page but I can receive full faxes.

    My Laserjet Pro 400 will fax only the top on third of the fax page but I can receive full faxes. But the system works with my older HP Fax Printer. Thank you.

    Hi @&nbsp;
    I suspect your question would be better answered in the HP Enterprise Business Community,  as the HP Laserjet Pro 400 Printer is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging.  When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP LaserJet Pro 400 Printer support page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Question using mbox2 pro as audio interface

    Is the the mbox2 pro firewire compatible with the new macbook pro laptops?...i think their interface is a 400 firewire but the new macbook pros 2009 laptop have only a 800 firewire port..how would i be able to use this box with it??...thank u....i want to also run lp9 using the same box.

    Forget the USB versions, they are noisy and the sound quality comming from the analog outputs is questionable... The Pro version will work with recent MBPs (FW800 only). I own a recent Mac which is equipped with FW 800 only, too and it works without any problems :))) If you don't trust me, read the official Digidesign statement here 9scroll to "Supported Apple computers" http://www.digidesign.com/index.cfm?navid=3&langid=100&categoryid=35&itemid=3693 3.
    You have to buy a FW 800 to FW 400 cable - search for 9/6 firewire cable (the numbers reflect the pin amount of FW 800 and 400), for example: http://cgi.ebay.com/10-Feet-9-6-PIN-9pin-6pin-FIREWIRE-800-400-DV-CABLEW0QQitemZ300368406831QQcmdZViewItemQQptZLH_DefaultDomain0?hash=item45ef5a292f
    Message was edited by: samplaire
    Message was edited by: samplaire
    Message was edited by: samplaire

  • I just ordered a macbook air today and need to know if the 128gb SSD is enough space. I presently have a macbook pro and am using only 30gb hard drive space so, the apple rep said 128 is enough as I do not load much pictures or gaming etc. Also is i5 ok.

    I just ordered a macbook air today and need to know if the 128gb SSD is enough space. I presently have a macbook pro and am using only 30gb hard drive space so, the apple rep said 128 is enough as I do not load much pictures or gaming etc. Also is i5 ok.

    Id choose the I5 yes, depends on what your usage is going to be,
    ....your question about "128 gig being enough" begs the question for IDEALIZED USE of your macbook AIr
    In the case of a Macbook Air with ‘limited’ storage on the SSD, this distinction becomes more important in that in an ever rapidly increasing file-size world, you keep vital large media files, pics, video, PDF collections, music off your SSD and archived on external storage, for sake of the necessary room for your system to have free space to operate, store future applications and general workspace.  You should never be put in the position of considering “deleting things” on your macbook SSD in order to ‘make space’.
    *Generally, unless you NEED the data at least once every few weeks or once a month,...it really does'nt NEED to be on the SSD of your Macbook Air.
    Professionals who create and import very large amounts of data have almost no change in the available space on their computers internal HD because they are constantly archiving data to arrays of external or networked HD.
    Or in the case of the consumer this means you keep folders for large imported or created data and you ritually offload and archive this data for safekeeping, not only to safeguard the data in case your macbook has a HD crash, or gets stolen, but importantly in keeping the ‘breathing room’ open for your computer to operate, expand, create files, add applications, for your APPS to create temp files, and for general operation.
    Ive got more APPS than any human should have on my 128gig AIR,..(50 or so),....and 10gig of working data, important files etc etc.
    Still have 82gig available....... the entire point is that someone shouldnt consider the Air a "storage device" for tons of pics, music, vids, etc.
    *Never consider any computer a data storage device at any time under any circumstance, rather a data creation, sending, and manipulation device. Anyone who thinks data is safe on any computer, even copied upon multiple partitions is making a mistake that will, without fail, strike.
    For needs of packing around a LOT of "big data" with your Air in its case..., get a nice 1TB HD for $70, or even a 2TB drive not much bigger.
    Perfect 2TB HD, very slim, the "little giant"   made by Toshiba (have several of these) $119
    http://www.amazon.com/Toshiba-Canvio-Connect-Portable-HDTC720XK3C1/dp/B00CGUMS48 /ref=sr_1_4?s=electronics&ie=UTF8&qid=1379182740&sr=1-4&keywords=2tb+toshiba
    *This one is the BEST  external HD available that money can buy:
    $75
    HGST Touro Mobile 1TB USB 3.0 External Hard Drive
    http://www.amazon.com/HGST-Touro-Mobile-External-HTOLMX3NA10001ABB/dp/B0062FZ2WS /ref=sr_1_1?s=electronics&ie=UTF8&qid=1379185002&sr=1-1&keywords=hitachi+extern a l+hard+drive

  • When I try to play a dvd Macbook Pro I get  a box with the message,This function is only for activated users. To activate go to Preferences and Donate" That took me to Mr. Gecko"s Facebook page wanting me to donate $1.99! Does any one know what this is? H

    When I try to play a dvd on my Macbook Pro I get a box with the message " This is only for activated users. To activate go to preferences,donate" this takes me to Mr. Gecko's facebook page asking me to donate $1.99-$4.99.
    Any clues on what this is, and/or how to bypass it? If I can report this to someone? Thanks

    Sure sounds like malware, unles you installed something from a questionable site, then it's still malware but in a payware form as playing DVDs is free on Mac's.
    Unless the DVD has software on it perhaps?
    Does this work on any movie DVD or is this a special kind of DVD with software on it from someplace?

  • How can I resize a JFrame ,to fit into the screen size

    I have a Jframe which has JPanel and JPanel contains lot of other components.JPanel size is 980,1400. when i use JFrame.show method jpanel goes beyond the screen size in length and I am not able to see the portion below the screen.How can I resize the JFrame so that JFrame and JPanel shrinks to fit into the screen size.I need this because I have a PRINT button at bottom of the JPanel.Thanks.

    Thank you for your reply.I tried with the following code as you have told.But the frame is still going beyond the screen.Can you please look into it and tell me whats wrong ?
    //public class PlayerRegForm extends javax.swing.JFrame implements Printable
    public static void main(String args[]) {
    PlayerRegForm prf = new PlayerRegForm();
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = prf.getSize();
    if (frameSize.height > screenSize.height)
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
    frameSize.width = screenSize.width;
    System.out.println("Screen Size ----------------- " + screenSize);
    System.out.println(" Frame Size ----------------- " + frameSize);
    prf.setSize(frameSize.width, frameSize.height);
    prf.pack();
    prf.show();
    =============================================================================
    Screen Size ----------------- java.awt.Dimension[width=1024,height=768]
    Frame Size ----------------- java.awt.Dimension[width=112,height=28]

  • Resizing of JFrame while the font on buttons increases

    Hey,
    I would like to ask you how to resize my JFrame ,when the size of buttons put in this frame increases.
    I mean the font on the buttons increases by 1 point every time I press the button. My goal is to make the two buttons visible all the time. Therefore I need to resize my JFrame. I tried in the following method, but it did not work :(
    (cp is contentPane() of my JFrame - frame)
    public void actionPerformed(ActionEvent e) {
    Component c = (Component) e.getSource();
    Integer nazwa= c.getFont().getSize()+1;
    int width = (int) cp.getPreferredSize().getWidth();
    if(cp.getPreferredSize().getWidth()>cp.getWidth()) {
    cp.setSize(new Dimension(width, cp.getHeight()));
    cp.validate();
    int height = (int) cp.getPreferredSize().getHeight();
    if(cp.getPreferredSize().getHeight()>cp.getHeight()) {
    cp.setSize(new Dimension(cp.getWidth(),height));
    cp.validate();
    c.setFont( new Font(c.getName(), c.getFont().getStyle(), nazwa));
    frame.validate();
    }

    pack() does not help, as I have already used it.
    Pls find below the whole code of the program:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class GUI implements ActionListener{
    final int BNUM = 2;
    static JFrame frame = new JFrame()
    static Container cp = frame.getContentPane();
    GUI() {
    cp.setLayout(new BoxLayout(cp, BoxLayout.X_AXIS));     
    for (int i = 1; i <= BNUM; i++) {
    JButton b = new JButton("Przycisk " + i);
    b.addActionListener(this);
    cp.add(b);
    frame.pack();
    frame.show();
    public void actionPerformed(ActionEvent e) {
    Component c = (Component) e.getSource();
    Integer nazwa= c.getFont().getSize()+1;
    int width = (int) Integer.parseInt(cp.getPreferredSize().getWidth().toString());
    if(cp.getPreferredSize().getWidth()>cp.getWidth())
    cp.setSize(new Dimension(width, cp.getHeight()));
    if(cp.getPreferredSize().getHeight()>cp.getHeight()) {
    cp.setSize(new Dimension(cp.getWidth(),cp.getPreferredSize().getHeight()));
    cp.validate();
    c.setFont( new Font(c.getName(), c.getFont().getStyle(), nazwa));
    public static void main(String[] a) {
    //cp.setPreferredSize(new Dimension(200,200));
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    new GUI(); }
    }

  • How can I do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder which does not have firewire out/input? it comes only with a component video output, USB, HDMI and composite RCA output?

    I need to do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder (http://store.sony.co...ber=HDRAX2000/H) ..this camcorder model does not have firewire out/input ..it comes only with a component video output, USB, HDMI and composite A/V video output..
    I wonder how can I plug this camcorder to the firewire port of my laptop? Browsing on internet I found that Grass Valley Company produces this converter http://www.amazon.co...=A17MC6HOH9AVE6 ..but I am not sure -not even after checking the amazon reviews- if this device will send the video signal through firewire to my laptop, in order to live streaming properly? ..anyone in this forum could help me please?
    Thanx

    I can't broadcast with the built in iSight webcam... how would I zoom in or zoom out? or how would I pan? I've seem people doing it walking with their laptops but that's not an option for me... there's nothing wrong with my USB ports but that's neither an option to stream video because as far as I know through USB you can't connect video in apple operating systems ..you can for sure plug any video cam or photo camera through usb but as a drive to transfer data not as a live video camera...  is by firewire an old interface developed by apple that you can connect all sorts of cameras to apple computers... unfortunately my new sony HDR-AX2000 camcorder doesn't have firewire output...
    thanx

  • I have 8 gb on my macbook pro, but it sometimes only recognizes 4 gb. Whats going on?

    I have 8 gb on my macbook pro, but it sometimes only recognizes one of the banks and thus only 4 gb. I was about to open my Macbook Pro mid 2010 2.66 up but it went back up to 8 gb of ram.
    I also noticed that the macbook would go to sleep and not wake up again, sometimes. Not sure if this is related.
    I did the usual, resetting the PRAM and the other thing with "shift control option." It didn't work and kept on saying 4 gb.
    I woke up this morning ready to break open the mac when it read 8 gb. Great! But the **** is going on. Is that memory slot loose?
    My google search and search through these forums were useless, no solutions. One guy tried changing his memory into the two banks, no difference. Sometimes it recognizes bank 1 sometimes it doesn't. Another put his ram in another computer, it's not the ram. Someone suggested the motherboard, then someone said "no way" for some arcane reason.
    The only solution that seamed viable was going back to snow leopard, the last great OS. Im on mountain lion, not to shabby, but no leopard.
    Problem is that I am out of warranty.
    Any suggestion would be helpful.

    why don't you try this:
    open the back of your Macbook - if you're technically capable...
    take the ram out, clean it up with a pencil eraser - blow it out - put them back in, slowly and in a slight angle until they lock into place - make sure they are seated correctly...
    restart your macbook - if the same bank is still not detecting - then the issue is your RAM slot...
    good luck

  • HT1727 i bought some ringtones on my iPhone, later on i sync my iphone to my old computer now i have a new mac pro desktop and i only have 2 ringtones on my phone but not the rest of them how can i get them back without having to pay for them again?

    i bought some ringtones on my iPhone, later on i sync my iphone to my old computer now i have a new mac pro desktop and i only have 2 ringtones on my phone but not the rest of them how can i get them back without having to pay for them again?

    If you bought them on your iPad then you will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to the Tones part of your computer's iTunes library and you can then sync them to your iPhone - ringtones are a one-time only download, so you won't be able to redownload them directly on your phone.

  • After i have downloaded an album from iCloud to my new macbook pro. Itunes will only play one song at a time. If i hit the fast forward or back button will not do anything. I have to use the mouse to hit the next tidal in the album then hit play for it

    after i have downloaded an album from iCloud to my new macbook pro. Itunes will only play one song at a time. If i hit the fast forward or back button will not do anything. I have to use the mouse to hit the next tidal in the album then hit play for it to play the next song. Or put it in the UP NEXT.

    First, make sure these items have checkmarks next to their names in iTunes. Continuous playback only works on checked items. Itunes will play all checked items in a list whether or not they're from the same album.
    If you see that nothing in your library is checked and you want to check everything, hold down Ctrl while checking an item. This checks everything.
    Next, fixing the "1 of 1" problem is easily. Select all the tracks that make up the book/album. Let's say there are 15. Press Ctrl-I. Doublecheck that the album box is filled in with the name of the book, and if not, type it there. Enter "15" in the box for the total number of tracks. Click OK. Now all the items should be "1 of 15," "2 of 15," and so on.

  • I have a MacBook pro version 10.6.7 with snow leopard. After an scheduled software upgrade I could not open Quicken (It said it could not open the files). Now I can only open it if I have my external drive on. Can you help?

    I have a MacBook pro version 10.6.7 with snow leopard. After an scheduled software upgrade I could not open Quicken (It said it could not open the files). Now I can only open it if I have my external drive on. Can you help?
    All the information that I had input on Quicken is gone. I have to have the external hard drive that I use to back up to be able to use quicken now. It is as if it was erased from the laptop hardrive

    Try repairing permissions. My favorite way is with a utility called AppleJack. Info and download here. It's free. It only works when you boot in Single User Mode. When restarting or booting, hold down the Command key and S keys.
    You will get a very different startup screen that looks like the Terminal app has hijacked the screen. Just let the lines of text scroll by. When that happens you will get a text entry prompt. Type in "AppleJack" without the quotation marks.
    A DOS looking menu will appear. Choose 1 or d to run Disk Repair. If you get a message that Disk Repair found and corrected errors, run it again. Repeat until you get the "your disk appears to be ok" message. This rarely happens with my experience, though. This does the same thing as as booting from an external drive and running Disk Utility's repair. Only, no external drive is required!
    Next, choose 2 or p to repair disk permissions. This will take a little while. AppleJack warns that it will take up to an half hour to run repair permissions. It'n never taken more than about ten minutes for my MacBook Pro.
    As permissions are repaired, you will see each repair scroll on the screen. When done, the menu returns, choose q to quit. Then at the prompt, enter "exit" without the quotes. Your MacBook Pro should restart into Mac OS normally after this.
    Hope this helps.

  • Connect a macbook pro to on old tv with only aerial cable input

    I'm trying to connect a macbook pro to on old tv with only aerial cable input, i have a mini displayport to vga, vga to s-video/phono(yellow) and a phono to aerial, the macbook doesnt recognize it as a display, any suggestions? Can i force it to send the signal?

    its not for picture quality the screen is not much bigger, its for an arcade emulation in an exhibit, so i wanted a crt type moniter, and low qulaity output, what input would an old style tv need for it to work?

Maybe you are looking for

  • Thunderbird times out when trying to access my account, but no trouble with firefox.

    connection to server j.maude@ntlworld timed out. firefox access sees these accounts with no problems. WHY!!

  • Check on use of Precalculated queries

    Hello, could you tell me if exist a way to check if the queries run batch ( throurg the Reporting Agent, with web Template ) are downloaded by the user? My problem is: the users donwload the query run thourgh the Reporting Agent ? Thanks !!

  • MSI 770 TF 2GD5/OC cant display GPU usage

    Hi everyone, Programs like Afterburner and GPU-Z dont show the GPU usage from my 770, it always stays at 0% wich obviously isnt right when im in-game etc.. Tried it with NVIDIA driver versions 320.49 and the new 326.19 beta, and MSI Gaming App 1.0.0.

  • Need a lot of responses!

    Hey, My phone is still "broken". I can't even turn it on now. Does anyone know what can help? I have taken it to verizion and they tried to restore it to the factory setting and it went through and then all at the end it said error (21). I tried turn

  • How can I prevent Podcast Maker from showing direct link to media files?

    I'm brand-new to podcasting and to Podcast Maker for Mac, but I finally created a podcast (after 3 hours of trying to figure out how to get the thing to upload to the correct sub-directory). My question is: When I look at my feed in Firefox, I see so