Cannot resize a JPanel???
I'm having trouble resizing a JPanel in my gui. I'm adding 4 JPanels to the contentPane which extends JApplet. I'm using a BorderLayout but the JPanel I'm inserting in BorderLayout.CENTER is defaulting itself to only take up half of the border.
I've tried setBounds(Rectangle r), setPreferredSize(Dimension d), setSize() and everything else but nothing works.
Can anyone please help
Can you post your code? This may help.
Similar Messages
-
Cannot resize the albums in album view in Itunes 11. For those of us with large libraries (160gb), this is extremely frustrating. I want to make the artwork smaller. This seems to be a serious oversight.
I agree.
It was very useful to reduce everything to small and quickly scan down looking for missing artwork.
Particularly useful when I only connect to the machine with iTunes via screen sharing, so everything can be a bit slower to scroll through at times.
In fact, itunes 11 when used purely as a server for Apple TV etc is a downgrade in usability IMO, as they've got rid of some of the useful views that helped me manage my library remotely. -
Cannot resize partition...
Before mods delete/close/move my post 'cause I'm sure there exist hundred of related problems to this let me explain.
I study Engineering in Computational Systems, for my Digital Design class I need some software that only exist for Windows (I've been searching the web looking for alternatives for Mac without success)... So I decided I'd install BootCamp and Windows 7, but I got the **** "cannot resize partition" error...
So here's the deal... I CAN'T make a backup, my external hard drive is damaged, I've been searching and I found that this problem is 'cause BootCamp can't move big files or stuff like that so to fix the problem I have to defrag the hard disk and here comes another problem, I can't afford iDefrag neither...
Any help for defrag or resize my Mac OS X partition?Usually when I see "Cannot resize..." it is because the Windows partition was too small, or they need more room for OS X files. Not because they got the error message from Boot Camp Assistant (which tells you to reformat and restore after you have a backup).
Step #1 is (always) backup before making changes.
Real easy... buy an external, you will need backups for Mac OS and probably Windows. you will want to be able to run OS X off external too at some point.
It isn't because there are big files, it is that they can't be moved.
The free space has to be contiguous, not fragmented, also, in order to create a slice for Windows.
I assume it won't work with a VM running under/inside OS X so you need to run Windows natively.
Some people have bought iDefrag ($49?) and results are anywhere from good to mixed to didn't work.
You are right, the question has been asked... about 999 times in the last two years. -
Hi All,
Previously i have enable the autoextened on for datafile but now i disable the autoextend but after autoextened off i cannot resize the datafile.
Please find the below example.
Total Free Free
Tablespace Data File Space [MB] Space [MB] %
TRUSTWARE01 E:\ORACLE\PRODUCT\10.2.0\ORADATA\WPABETA\TRUSTWARE01 14556.75 9275.13 63.72
D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF 17764.88 12684.81 71.40
D:\ORACLE\ORADATA\WPABETA\TRUSTWARE05.DBF 3225.56 397.13 12.31
SQL>
SQL> alter database datafile 'D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF' resize 10240M;
alter database datafile 'D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF' resize 10240M
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE valueTry this, modify it to mention the tablespace name or the datafile name. This is from http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:153612348067
----------- maxshrink.sql ----------------------------------
set verify off
column file_name format a50 word_wrapped
column smallest format 999,990 heading "Smallest|Size|Poss."
column currsize format 999,990 heading "Current|Size"
column savings format 999,990 heading "Poss.|Savings"
break on report
compute sum of savings on report
column value new_val blksize
select value from v$parameter where name = 'db_block_size'
select file_name,
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
ceil( blocks*&&blksize/1024/1024) currsize,
ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
from dba_data_files a,
( select file_id, max(block_id+blocks-1) hwm
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+)
column cmd format a75 word_wrapped
select 'alter database datafile '''||file_name||''' resize ' ||
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) || 'm;' cmd
from dba_data_files a,
( select file_id, max(block_id+blocks-1) hwm
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+)
and ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) > 0
/Regards,
SK
Edited by: SK on Dec 6, 2010 9:36 AM -
Cannot resize collapse/expand window when no project is open
Using Premier Pro CC 2014 on Windows, when I first launch Premier and no project is open, I cannot resize the Premier window, nor can I collapse or expand it. Is that just a bug?
Post a screen grab please.
I am interested to see where you are in this "issue". -
Cannot resize system partition due to recovery partition
Hello.
I have a 500GB HD (momentus XT) that replaced my default 320GB HD.
i cannot resize the system partition due to the recovery partition. System keeps on telling me that "map is too small".
Tried diskutil under osx, under lion bootable recovery usb stick, under diskutil through console.
Here is what diskutil tells me.
~ > diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 319.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
~ > diskutil resizeVolume /dev/disk0s2 400G
Started partitioning on disk0s2 Macintosh HD
Verifying the disk
Checking file system
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
Resizing
Error: -5341: MediaKit reports partition (map) too small
I want to resize the partition to use the remaining new space i have, of course, and create a bootcamp part.
I am wondering if i can kill the recovery partition without destroying my lion. As i have the recovery transfered successfully to usb stick using the apple utility, i am able to use it anytime.
But... just wondering if that would crash my OS or not.
Or, if anyone sees a way to move the recovery partition to end of the HD so that i can enlarge successfully...Thanks to you both, luckily there's only 600GB on that drive at the moment.
I was wondering, though, why won't it let me make it bigger?
I already had a 1TB partition in the space below it. The screenshot shows me having already deleted it - but still no option to resize the other (larger) 2TB one.
If there is a reason why I can't resize now, then I can take that advice and try and make sure it doesn't happen when I reformat it again.
I would understand if the partition were MBR, but it's not, it's a GUID Partition Table (bottom right), so I'm confused - what is it's problem? ;-) -
Cannot resize some columns in the music folder for my ipod
It seems I cannot resize some of the columns I'm displaying in the music folder for my iPod... such as:
Album, Grouping, Kind
But I can resize the other columns...
I've tried moving the column around, doesn't seem to help
I can resize all columns in my Music folder for the PC.
Any ideas?!?ok...
If I remove the column from my view... and then re-add the column, it all works fine.
Is this a bug? -
cannot resize using corners
You acidentially hit Command (Control) Shift B for hide Bounding Box if you hit those keys again it will reappear and you will be fine. Or go to View>Show Bounding Box.
-
Cannot resize partitions on yosemite !!
cannot resize partitions on yosemite !!
Do they have data on them? Are these partitions you could resize before? Is this a new machine? Is it formatted GPT or something else? Are you using boot camp?
It would be helpful, also, if you would phrase your question in the form of a question -
Out of the clear blue sky, I now cannot resize any images in PSE 7. I have Win7. In the image Resize box, I can change a image to 50 percent and hit ok and nothing happens.
Thank you Bob... that was it...
-
After install Lightroom 5.3 we cannot resized a pict in export function with "bord etroit" parameter. It's good with "bord large"!...
Regards
JacquesDanCarr wrote:
I'm sure this was working in the previous version......
Yep - new bug in Lr5.3 (presumably will be fixed in Lr5.4).
More info here:
http://feedback.photoshop.com/photoshop_family/topics/publish_service_harddisk_ignores_ima ge_sizing_resize_to_fit_short_edge_setting_when_source_image_is_a_dng_on_lightroom -
Java.lang.IllegalStateException: cannot resize buffer
I am running Bea Weblogic 7.0.0 on Sun Solaris 2.8. I see the following error
message appearing in the weblogic server logfile:
java.lang.IllegalStateException: cannot resize buffer: 60 bytes have already been
written
Does anyone know what is causing this or a solution to this problem?
Looks like you are trying to resize the buffer after writing body content to the
response. So resize the buffer before outputting anything to the PrintWriter :)
Thanks
"Mukesh" <[email protected]> wrote:
>
>I am running Bea Weblogic 7.0.0 on Sun Solaris 2.8. I see the following
>error
>message appearing in the weblogic server logfile:
>
>java.lang.IllegalStateException: cannot resize buffer: 60 bytes have
>already been
>written
>
>Does anyone know what is causing this or a solution to this problem?
-
Hi,
Im trying to use swing for almost the first time.
I changed my system to Linux and installed J2sdk 1.4.
When I write a class
e.g.
import javax.swing.*;
import java.awt.*;
etc...
class Test extends JPanel {
I receive an error message "Cannot find class "JPanel""
Can anyone help ? Maybe I didnt install the right thing ?
Thanks
Ulrikeyou sure reinstall and overwrite your current sdk. Do you have the runtime environment installed too -- should come with the sdk
-
I cannot resize neither move a photo from my album in the background settings. Normal behaivour in photos app.
Thanks for your answers.I cannot resize neither move a photo from my album in the background settings. Normal behaivour in photos app.
Thanks for your answers. -
User cannot resize jTables� columns
Hello,
Using NetBeans IDE 3.5.1, I built a jTable, controlled by a
JScrollpane.
My problem is that the user cannot resize the jTables� columns.
Maximum details:
1. jtablewidth is set to a fixed value according to internal data:
JTable1.setPreferredSize( new Dimension(tableWidth, i_TableHeight));
2. columnwidth is set according to internal data:
Col = JTable1.getColumnModel().getColumn(i);
Col.setWidth(width);
Col.setResizable(true);
Col.setMinWidth(width);
3. jTable header details:
JTableHeader anHeader = JTable1.getTableHeader();
anHeader.setReorderingAllowed(false);
anHeader.setResizingAllowed(true);
4. JTable1.getTableHeader().setResizingAllowed(true);.
5. Initial declerations:
a. JTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
JTable1.setColumnSelectionAllowed(true);
JTable1.setDragEnabled(true);
JTable1.setPreferredScrollableViewportSize(new
java.awt.Dimension(650, 500));
JTable1.setPreferredSize(new java.awt.Dimension(1200, 409));
JTable1.setRequestFocusEnabled(false);
b. JScrollPane1.setMaximumSize(new java.awt.Dimension(750, 412));
JScrollPane1.setPreferredSize(new java.awt.Dimension(750,
412));
JScrollPane1.setViewportView(JTable1);
JScrollPane1.setAutoScolls(false);
c. Jtable.autoCreateColumnsFromModel (true);
Thanks alot,
ItayColumns resizing works by default. You don't need to do anything special.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.
Maybe you are looking for
-
Mid 2013 Macbook Air Battery Fix
Hello everyone, I'm getting 5-6 hours on a 11' Macbook Air 2013. Here are below stats: Hardware Information: MacBook Air (11-inch, Mid 2013) MacBook Air - model: MacBookAir6,1 1 1.3 GHz Intel Core i5 CPU: 2 cores
-
IPod Nano 2gen recognition issue!
Ok, my girlfriend got a 2nd gen ipod nano and is computer illiterate. SO, she thought hey, i'll just give it to my friend to load songs on. So the first time that it was connected to a computer was on her friends computer. then i went over and instal
-
Yet again, bt bad service (youview gripe already)
(previously tried to cancel vision within 7 days but lets not go there) Great, so i got the emai about youview, was excited to upgrade and get it so i dont have to flick between tv freeview for hd channels anymore. So i ring them up, on the number wh
-
Hi experts, how would you define : a high criticity interface ? a medium ? a low ? Kind regards, Jamal
-
1.5.4. "Toggle SQL Worksheet Area" not found
In 1.5.3. there was a very usefull shortcut for "Toggle SQL Worksheet Area", but I couldn't find it in Version 1.5.4. Is there a similar functionality now in 1.5.4? Enhancement request: Maybe this "Toggle" functionality can be improved to "Toggle and