Split pane - problem with resize
I have problem with splitPane. I can't resize panels using splitpane and i dont know why :(
Here is my program: https://rapidshare.com/files/4139244909/inzynier.rar
Any ideas, what i am doing wrong?
Another problem is: When i try build this project i geting warinings :
warning: No SupportedSourceVersion annotation found on org.jdesktop.beans.JavaBeanProcessor, returning RELEASE_6.
warning: Supported source version 'RELEASE_6' from annotation processor 'org.jdesktop.beans.JavaBeanProcessor' less than -source '1.7'
2 warnings
;/
Seeing that your file has a size of 3.5 Mb, I preferred not to download it, but to send you this link.
Similar Messages
-
I have a panel with a split pane in it. On the Left hand side there is a Tree and on the right side is a complex tabbed pane.
(complex meand it includes many panels, more tabbed panes and other components).
My problem is this. I have given a specific width for the split pane for the tree and at start time it comes corrcetly. But when I move the Split pane left, suddenly it jumps to the left edge of the screen. And then I cant move it forward again. Tree cannot be seen now.
Why does this happen I just cant figure out.
Is it because of tabbed panes or something with the split pane.
Another thing is when I try to move the split pane to the left the movements are not smooth. It kind of do smaller jumps, until it do that big jump to the edge.
Any help would be greatly appreciated....Seeing that your file has a size of 3.5 Mb, I preferred not to download it, but to send you this link.
-
Split Panes, Frame and Resizing
Hi,
my user interface is made up of a message panel using the created class SplitPanes2 through the method createSplitPanes called from a class that extends Frame. (will post code if required: lengthy). When the frame is resized/maximized, the splitPanes remain at their preferred size. How can I work on it such that the SplitPanes will resize proportionally too? Please inform me if I have overlooked certain details.
-cyndi
public class AppLayout {
Frame parent;
public AppLayout() {
public void createSplitPanes( Panel messagePanel, TextArea messageAreaOut, TextArea messageAreaIn, TextArea messageArea ) {
Panel splitPane2 = new SplitPane2( messageAreaOut, messageAreaIn, messageArea );
messagePanel.setLayout( new GridLayout(1, 1));
messagePanel.add(splitPane2);
public class SplitPane2 extends Panel {
public SplitPane2( TextArea messageAreaIn, TextArea messageAreaOut, TextArea messageArea ) {
//Create an instance of splitPane
splitPane sPane2 = new splitPane( messageAreaOut, messageAreaIn );
JSplitPane left = sPane2.getSplitPane();
//XXXX: Bug #4131528, borders on nested split panes accumulate.
//Workaround: Set the border on any split pane within
//another split pane to null. Components within nested split
//panes need to have their own border for this to work well.
left.setBorder( null );
//Create a split pane and put "left" (a split pane)
//and TextArea instance in it.
JSplitPane sPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT,
left, messageArea );
//splitPane.setOneTouchExpandable(true);
sPane.setDividerLocation( 150 );
sPane.setResizeWeight( 0.5 );
//Add the split pane to this frame
sPane.setPreferredSize( new Dimension( 400, 430 ) );
add( sPane );
class splitPane {
JSplitPane sPane;
public splitPane( TextArea messageAreaOut, TextArea messageAreaIn ) {
//Read image names from a properties file
sPane = new JSplitPane( JSplitPane.VERTICAL_SPLIT,
messageAreaIn, messageAreaOut );
//splitPane.setOneTouchExpandable(true);
sPane.setDividerLocation( 0.5 );
sPane.setResizeWeight( 0.5 );
//Provide a preferred size for the split pane
sPane.setPreferredSize( new Dimension( 150, 350 ) );
public JSplitPane getSplitPane() {
return sPane;Hi, I'm not sure, but I think I had a similar problem. I tried to place a JSplitPane inside a JPanel and then I got the same behaviour as you describe. Unfortunately I didn't find out why that happened. I simply didn't use the JPanel and then it worked as I wanted it to. (Almost) :)
-
Problems with resizable container
Hi,
I have a resizable JPanel with cubes inside it.
The problem is when I resize the JPanel the cubes inside it gets resized only after I move the borders of the JPanel ~14 pixels...
The problem is in the X axis...
The Y axis "jumps" every ~5 pixels...
I need content of the JPanel also to resize every 1 pixel (so it would be on the borders of the JPanel)...
Any Ideas?I guess that the only solution is NOT to use gridLayoutWell that would explain the behaviour. It would have been nice if that information was included in the original question. Thats why I always ask for a SSCCE, since you never no what information is importan or not.
All components in a GridLayout have the same size. So if you have a Grid with 10 component that is 400 pixels wide each component will be 40 pixels wide. As suggested above the size of each component will only be adjusted when you incread the width by 10 or more (since you have 10 components in each row).
Doing it manually would also be a pain. If you increase the width by 1 pixel you would only be able to increase the size of one component. Then if you increase it by one pixel again you can only change one component, so do you change the first one again or the second. So now you need an algorithm to determine which component gets the extra space.
I need content of the JPanel also to resize every 1 pixel (so it would be on the borders of the JPanel)...Don't know exactly what your layout is like, but maybe you could center the panel in the frame. That way as you change the size the "border" will change on both sides and it may not look as bad.
You can try using a BoxLayout. Components will grow as the size is increased but I think you might have problems with the first components always growing first. -
Problem with resizing the new Pages window
I can't get my Pages Window any smaller, it says (if I use Window Tidy for example) that the window size was restricted.
With the old Pages I used to have two Pages-windows open right next to each other, so I coul work on two documents at the same time. Now that i can't resize them anymore (only making them bigger is possible) they don't fit on the screen anymore.
Anyone having the same problem, maybe even a solution?
Thanks a lot in advance!Posting here is only talking to fellow users.
Dump Pages 5 and go back to Pages '09, then give proper feedback on either Apple's website or the App Store.
The App Store is probably the best place as it is public and a bad review has more impact than private entreaties to Apple.
Peter -
I have a video which I would like to be able to play on my HTC Hero smartphone. The video size is 480 x 272 pixels. According to my friend, I have to resize it to fit in my smartphone device resolution, which is 3.2-inch TFT-LCD touch-sensitive screen with 320x480 HVGA resolution. However, I installed QuickTime Pro 7. I tried to resize it under Inspector Movies Property and I get an error saying that the timecode is invalid or something like that. I also noticed the file size would be in kilobytes than in megabytes. I tried extracting the video and editing from there but that did not work.
The problem is when I tried to play it on my smartphone, I cannot get the picture, I get a blank green coloured screen. The audio track work fine.
Message was edited by: MitochondrionJon Walker wrote:
I have both Flip4Mac WMV and Perian installed. I do not have DIVX installed. You want me to convert the video? If so, which format? Alright then, I will send you a sample of the video.
If you have one of the "Studio" ($49 or more) level versions of Flip4Mac installed, I would recommend a WMV conversion since it is very standardized and specifically mentioned as being supported by your device. (Even if you only have the free player installed, you should be able to make up to a 30-second "demo" conversion for testing purposes.) Converting to Perian AVI could be iffy but your could try an MPEG4, H264, or H264 video with AAC, MP3, or WAV audio. (Official AVI support was dropped by originator a decade ago but Windows seem unwilling to "move on" to more modern file types.) The mere fact that WMV support is specifically mentioned leads me to think the multimedia player may be more "Windows" based than Mac based. Let us know how your test turns out as this may be an issue for other Mac users of this device.
I only have the free player and I am not very keen on paying $49 or more for these softwares. It is far fetch for me. I will make an attempt to try to convert the video and see what happen.
Erm...How do I do this? I had a look in System Preferences.
Message was edited by: Mitochondrion -
Problems with resizing a JFrame
Hello people! I'm having a problem setting the size of a JFrame while it is visible. Just resizing it by hand with the mouse is no problems, everything works ok, but when I call the setSize(blabla) method, the contents of the window doesn't notice that it has more space to draw the components on. The result is that the extended area of the window is just plainly white... until I resize it by hand, then everything looks ok. Does anyone have a solution? repaint() doesn't help...
/Erikhay svenmeier...
I'm all confused with the pack() method... I don't like it :) It always sets the size 2 pixels too large in windows 9x/Nt/2k/xp. Of course that's adjustable, but I'm unsure whether it will be the same on all other platforms. It's just one problem that I have that I have never been able to solve. Asking people around here for a solution never helped, because it seems others do not have this particular problem.
So, to me it seems that the most reliable way to set the size of a frame is to first set it visible, and then resize it with respect to the insets.
/Erik -
Split x2 problem with USB ports not working
My computer is somewhat new and this problem has been happening since I first got it. I couldn't find anything about this problem here or elsewhere online.
When I plug anything into either USB port (I've tried my phone and an external harddrive) the computer like sort of recognizes it on and off. When I plug in my phone the computer beeps at random every several seconds and doesn't recognize it. The external hard drive was sort of recognized but only on and off and I couldn't move things from it to my computer because it wouldn't stay connected long enough. It's literally like every 2-3 seconds it recognizes the USB thing, changes it's mind and then recognizes it again, etc. forever.
I haven't had a chance to test the SD card slot or the HDMI port yet.
Sometimes the mouse freezes also, I'm not sure if this is the same problem (related to connection between the tablet and the keyboard parts) or if these are separate problems. It seems to be happening less often and goes away if I wait for a moment. Still annoying but the USB ports not functioning is a more urgent issue.
I need help, is there a way to fix this or is something faulty with my computer?Hi Purple24,
I understand you are having issues with USB on your HP SplitX2. Here is a document on general troubleshooting.
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03327635
I would be happy to assist if needed. Please let me know what is your model number? Here is a link that will help you find that out.
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00033108
Please let me know.
Thanks.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
PSE 8, Windows XP
Attempting to resize the canvas I entire a width and a lenght. I leave the position square in the middle. I click OK. The canvas extension appears only at the bottom of the photo, not all around as it does in PSE 3. I tried relative. Same result, just new canvas at the bottom. I checked Barbara Brundage's book and it should work the same as it does in PSE 3 but doesn't. I also went to PSE "Learn more about canvas size". It also shows that my canvas extensions should show all around. It also suggests that I should be able to choose a background color, but that option is grayed out for me.
I know I can just do what I want to do using PSE 3 which I kept on my computer for emergencies just like this, but I would like to solve the problem.
Can anyone tell me what I'm doing wrong?
Thanks. EvaEva,
Works fine in my PSE8 on Win XP. I see the following options (sorry, I only have a German version available):
The image centers just fine. Are you sure you're seing the entire image (ctrl-0)? What's the image format you're working on (PSD, JPG, 8-Bit, 16-Bit)?
Beat Gossweiler
Switzerland -
Problem with resizing on Photosmart Premier program on my 4240 series 400 Photosmart Printer
I went to "create" on my HP Premier program and made a calendar with it. I am trying to print out that calendar but it won't make it small enough to print off on an 8x10 format. It comes up like 16x20 or so no matter what I do, ie, with white borders, scale to fit 8x10 paper, letter sized, scaled to fit onto letter size, etc, etc. I am using the calendar form provided by the HP Premier so I would think I must just be doing something really wrong for it to not print out the correct size for me. Can you tell me what I need to do to make the entire calendar print off on one sheet of paper?
Hi Gannato.
You may want to try the print-at-home calendar project in HP Photo Creations. It offers multiple output sizes, from 8½ x 11 to 13x19. HP Photo Creations is a free download for Mac and Windows at www.hp.com/go/hppc.
You can start your calendars on any month. With the ship-to-home calendar project, you can customize the grid section as well by dragging images there. Place a picture of Grandma on her birthday, or a heart graphic on your anniversary day.
Another fun feature: On the print-at-home calendar, try resizing the calendar grid by dragging the bottom right corner. The 12 squares line up in different layouts, such as 3x4, 4x3, 2x6, and 12x1.
Hope this helps,
RocketLife
RocketLife, developer of HP Photo Creations
» Visit the HP Photo Creations Facebook page — news, tips, and inspiration
» See the HP Photo Creations video tours — cool tips in under 2 minutes
» Contact Customer Support — get answers from the experts -
Problems with resizing tablespace.
Hello
When I installed Oracle Application Express I use SYSAUX as default tablespace.
During unsuccessful transaction I increased this tablespace up to 5,5 Gb. After dropping all unneeded data I have 700 Mb of used space.
When I tried to alter database datafile ... resize 1 Gb, I received an error ORA-03297: file contains used data beyond requested RESIZE value .
Is there some way to defragment tablespace
Best Regards, Kostya Proskudin
P.S. I use 10gNever use SYSAUX or SYSTEM tablespace as the default tablespace. Query dba_extents to find out which segments are located towards the end of the file, then move these segments to another tablespace and then you'll be able to shrink the datafile, unless of course, a sys or system extent is occupying the space.
-
Problem with JFrame resizing at runtime
Hi All,
I have a problem with resizing the JFrame at runtime. Even if i resize the JPanel. It is not affection on all the components over the frame. How can i solve that I am using AbsoluteLayout(jre1.6) and here i am going to provide you code snippet. My requirement is to resizt the form. If form is small in size then all the component should also be according tothe size of the form.
public void initComponents(int size) {
if(size >= 50) {
x_co_or = 300;
y_co_or = 300;
} else if(size < 50) {
x_co_or = 200;
y_co_or = 200;
jPanel1 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jButton1.setText("jButton1");
jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, 110, 40));
getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, x_co_or, y_co_or));
pack();
Can anybody suggest any idea/solution.
Any idea/solution are most welcome.
Regards,
Pradeep DubeyHow can i solve that I am using AbsoluteLayout(jre1.6)
and here i am going to provide you code snippet.no need for the snippet, you're using absolute positioning, which means you're responsible for location and size on every single change.
start coding now, take about a week, or you could use a layout manager, take maybe, 5 minutes -
Problem in resizable 2 matrix in own form
I want to design a form with exactly like <b>journal voucher</b>
so it has 2 matrix object (upper and below)
here's my code
Set oFormPOS = SBO_Application.Forms.Add("formPointOfSales", ft_Sizable, -11)
'// set the form properties
oFormPOS.Title = "Form Point of Sales"
oFormPOS.Left = 300
oFormPOS.Width = 520
oFormPOS.Top = 100
oFormPOS.Height = 500
oFormPOS.AutoManaged = False
Set oItem = oFormPOS.Items.Add("PMatrix1", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = 25
oItem.Height = 160
Set oPOS.oMatrix = oItem.Specific
Set oPOS.oColumns = oPOS.oMatrix.Columns
Set oItem = oFormPOS.Items.Add("PMatrix2", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = 300
oItem.Height = 170
Set oPOS.oMatrix2 = oItem.Specific
Set oPOS.oColumns2 = oPOS.oMatrix2.Columns
but when I resize down my form, <b>the matrix followed my resize and increasing the height automatically and stacking with another matrix</b>.
even though I set AutoManaged = False, it still resize automatically , and make my form
screw up
Please anyone help me to solve this problem
I want my form to exactly like journal voucher (doesn't has a problem with resize)
ThanksHi Rasmus Thanks for the answer
and what do you mean by catch the form resize event ?
about my code what is the use of Automanaged = false, I didn't feel any different
I thought Automanaged = false will make my matrix not resize automatically,but it didn't
if i can change my matrix not resize automatically, I think i will change my code to these code, and I hope will auto arrange the position of my matrix
Set oItem = oFormPOS.Items.Add("PMatrix1", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = oFormPos.Top + 10
oItem.Height = (oFormPos.height/2) - 30
Set oPOS.oMatrix = oItem.Specific
Set oPOS.oColumns = oPOS.oMatrix.Columns
Set oItem = oFormPOS.Items.Add("PMatrix2", it_MATRIX)
oItem.Left = 20
oItem.Width = 485
oItem.Top = (oFormPos.Height/2) + 10
oItem.Height = (oFormPos.Height/2) - 50
Set oPOS.oMatrix2 = oItem.Specific
Set oPOS.oColumns2 = oPOS.oMatrix2.Columns
but I don't know how to disable the resize of the matrix automatically
so Rasmus beside what is the form resize event, do you know the use of automanaged ?
Thanks -
Design problem(split pane scrollpane Insets)
hi,
doing a exam simulator prgm
design is like,
Question (text area with scrollpane)
Answers (checkbox inside panel with scrollpane)
used split pane between qst and ans but big thick bar comes how to reduce size and it is not
moving.
used GridLayout for container and panel.
PROBLEM is how to leave space qst textarea appears from very left edge of screen how to leave some space
same prblm for checkbox they to appear extreme left on screen.Put those components in a JPanel overwriting the getInsets() method like this:
JPanel cPane=new JPanel(){
private final Insets _insets=new Insets(10,10,10,10);
public Insets getInsets(){
return _insets;
};...should do the trick, take a look at the Insets class if you need information on how defining it... -
Problem with online split backup, database oracle
Hello,
we use for backup our SAP system online split backup, our database is almost 3TB big. Backup is functional but sometimes (4x-5x per month) backup fail with error bellow. If i understant this problem correctly brbackup lost connection to oracle after split disk system and cant stop backup mode in database and backup failed. How can i solve this problem? Exist some parameter for brbackup for reconnect to db when brbackup lost connection? Thanks for your help!
BR0051I BRBACKUP 7.00 (25)
BR0262I Enter database user name[/password]:
BR0055I Start of database backup: bebnhrzd.anf 2009-09-22 14.52.25
BR0484I BRBACKUP log file: /oracle/BP1/sapbackup/bebnhrzd.anf
BR0351I Restoring /oracle/BP1/sapbackup/cntrlBP1.dbf
BR0355I from /oracle/BP1/sapbackup/cntrlBP1.dbf ...
BR0280I BRBACKUP time stamp: 2009-09-22 14.53.10
BR0319I Control file copy created: /oracle/BP1/sapbackup/cntrlBP1.dbf 21676032
BR0280I BRBACKUP time stamp: 2009-09-22 14.53.13
BR0315I 'Alter database begin backup' successful
BR0280I BRBACKUP time stamp: 2009-09-22 14.53.14
BR0295I Splitting mirror disks...
BR0280I BRBACKUP time stamp: 2009-09-22 16.07.43
BR0296I Split of mirror disks successful
BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
BR0301E SQL error -3135 at location BrBackAlter-3, SQL statement:
'/* BRBACKUP */ ALTER DATABASE END BACKUP'
ORA-03135: connection lost contact
BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
BR0318E 'Alter database end backup' failed
BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
BR0301E SQL error -3114 at location BrBackAlter-3, SQL statement:
'/* BRBACKUP */ ALTER DATABASE END BACKUP'
ORA-03114: not connected to ORACLE
BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
BR0318E 'Alter database end backup' failed
BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
BR0301W SQL error -3114 at location BrbDbLogClose-1, SQL statement:
'UPDATE SAP_SDBAH SET RC = '0005', ENDE = '20090922161744', OBJ = ' ', LINE = '# 224 0 0 81358 7817759352 0 0 ALL online_split util_file -
7.00 (25)' WHERE BEG = '20090922145225' AND FUNCT = 'anf' AND SYSID = 'BP1''
ORA-03114: not connected to ORACLE
BR0326W Update of database log header failed
BR0056I End of database backup: bebnhrzd.anf 2009-09-22 16.17.44
BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
BR0054I BRBACKUP terminated with errors
Backup utility finished with returncode 5
Backup FAILEDHello,
in note 534729 is nothing about ORA-03135: connection lost contact only error ORA-03114 which refer to the note 335199 and in this note in nothing about ORA-03114 I want to say two things: this two oracle errors (ORA-03135 and ORA-03114) are not in alertSID.log on db server or in syslog on backup server. This error are only reported from brbackup which is running on backup server which is "client side". We don't have problem with connection from work processes on all instances to db server, we have only problem with brbackup which lost connection after split disk system. How i say this problem occurs only sometimes. I was tested network connection from backup server to db server via niping a this is result:
(root@hytti) #./niping -c -H kiuru -B 30000
Sat Sep 26 14:10:58 2009
connect to server o.k.
send and receive 10 messages (len 30000)
times -
avg 7305 usecs
max 46234 usecs
min 2168 usecs
bw 8020.50 kb/sec
excluding max and min:
av2 3081 usecs
bw2 19013.91 kb/sec
do you have any idea?? Thanks!
Maybe you are looking for
-
Displaying image in report DESFORMAT ='SPREADSHEET' (Excel)
Hi, I want to display a logo in Excel report. I have created one formula column with function function CF_4Formula return Char is begin return('/report/xls/gelogo_new.bmp'); end; I have placed the image in the above path. When I execute the report im
-
Extracting string from a file name
Hello, I have a legacy (read: I didn't build it) SharePoint list that includes some validation when uploading files that's giving me some trouble. Basically, our users are required to add files to a list in a certain filename format and based on the
-
How can i make the dynamic image link field access camera
This is for Windows 8 only and needs to use the built in camera of the tablet they will be using. I am not a developerso this seems incredibly difficult to me.
-
Metadata conflict: Doesn't show location data
Hello there, I imported some pictures to Lightroom and edited them there normally. After closing lightroom I edited the location information via GeoSetter (www.geosetter.de). Looking at the images via ACDSee, I see correctly entered City, Sublocation
-
Problems Removing Large Amounts of Data
Hello Everyone, First let me state that i know the difference between removing and deleting and i was removing. So i have a huge lightroom library of about 300,000 images and i tried to remove 50% all at once. Heres my process 1. Right click remove 1