Borderlayout problem, make North a bit larger
Hi,
I want to create an applet with a border layout, I have the following code to define the layout:
setLayout (new BorderLayout (0,5));
add ("North", infoline);
add ("Center", screen);
add ("East",vert_scrollbar);
add ("South", txtinput);
At the North of the applet I have drawn a Canvas (infoline). But this Canvas can not be fully displayed because the north position is a bit so small, so I want to make the North a bit higher.
Thanks in advance
Pieter
Yes, I know it's a Penal but can you change it to a JPanel?
This is from the Java API documentation for BorderLayout -
"The components are laid out according to their ___preferred___ sizes and the constraints of the container's size. The NORTH and SOUTH components may be stretched horizontally; the EAST and WEST components may be stretched vertically; the CENTER component may stretch both horizontally and vertically to fill any space left over. "
So if it is possible change your infoline class to extend JPanel instead of Panel.
If this is not possible then place a JPanel inside the north pane, give it a preferred size and then place your infoline inside that JPanel.
Similar Messages
-
Error: requested transformation would make some objects too large
working in Illustrator CS2, and am getting the error "Can't move the objects - The requested transformation would make some objects too large." From reading another post (that I am unable to find to reply to) I gather this may have to do with some guides. I have unlocked all guides through View Menu. Interestingly, according to help I should have hte selection to "view" guides. I don't find it. My problem is, i can find the guides to either delete or convert to an object to see if this will alllow me to move the objects. it is a 1 layer artwork, with multiple groups (too many too count),and multiple paths under each group (again, too many too count). This artwrok is a map printed to .pdf from SMT Kingdom. Kingdom is not very powerful, and I often annotate and edit maps in Illustrator; I frequetnly get this error when I have a map with contours on it.
Any ideas?Because of the nature of my map, I do tend to have "landgrid" and other type of data that "extend" way beyond my actual image. for example, print to 8.5 x 11, and i might have a river that is part of my landgrid, that extend beyond the page size. The software from which I am printing does not "clip" this river. I have many times attempted to select and delete all this extraneous stuff, to alleviate my problem with "make some object too large", but no luck. I can assure you I don't have an object WAY off the page...i have zoomed out to the moon.
-
Mouse cursor problem with CS4 64 bit under Windows 8.1
When using tools such as the various lasso tools, I get three cursors in a horizontal line, the leftmost one being the active one. Then when I click in a panel, it turns into a hieroglyph resembling three small vehicles or boats in a line. I don't know if this is related to the reputed bug that plagues gamers using Win 8.1. Any suggestions greatly appreciated.
I seem to have solved my problem and give the solution for the benefit of anyone else encountering it.
I had right clicked on the Desktop and selected Screen Resolution. I then clicked on 'Make text and other items larger or smaller' and moved the slider to the right to make the PS panels larger.
This seems to have caused the problem, and I overcame it by returning the slider to the central position and then reducing the screen resolution to bring the panels up to the desired size. -
Undocumented problem solved with 16-bit pcmcia and irq error
I am having the exact same problem as described in the following post:
"Undocumented problem solved with 16-bit pcmcia and irq error."
"I'm using a DAQ Card (AI-16E-4), which didn't work properly in MAX. MAX complained that the card didn't respond to an interrupt request.
I've had this issue for a while, but dropped it, since NI support told me nothing could be done about it. Meanwhile, a seemingly unrelated problem with a wireless pcmcia network card arose. Cisco had no clue what was wrong with their card either, but I found Microsoft Knowledge Base Article Q327947. It seems that Win2k (they claim SP3 and up) disables ISA to PCI routing, which is what causes this problem.
To fix it, open regedit
and navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Pcmcia\Parameters"
edit or create the DWORD value "DisableIsaToPciRouting" and set the value data to 0.
See Microsoft's article for further details: http://support.microsoft.com/default. aspx?scid=kb;en-us;327947"
The difference is that I am using WinXP and the Regedit fix does not solve the problem. Does anybody know how he was able to continue to use the card before he solved the problem? The card works fine in MAX, but errors out in LabVIEW.Hey Willy,
Here some additional suggestions that have corrected some PCMCIA difficulties in the past besides the registry edit you suggested.
1. General Troubleshooting to Verify Correct Hardware and Software Installation
Uninstall the PC Card hardware through Device Manager
Remove the PC Card from the laptop
Uninstall the NI-DAQ software
Follow the normal installation instructions (the most important step to remember for Plug-n-Play Operating Systems is to install the software first)
Try the latest service packs for Win 2000 or Win XP
Try the PC Card in a different laptop
Try a different slot in the laptop. On certain laptops PC Cards have been successfully installed in the top PCMCIA slot instead of the bottom.
2. Additional Troubleshootin
g for PC Cards that Return IRQ Conflicts
For E-Series DAQCards:
Update to NI-DAQ 6.9.3 first and then update NI-PAL to version 1.6.1 (included exe file).
Download the attached NI-PAL (ni-cdu1610.exe), and run the installer. When receiving the error "The device is not responding to the first IRQ Level" in Measurement and Automation Explorer, try this method of upgrading NI-PAL
3. Additional Troubleshooting Steps
Try disabling the 3COM adapter, and any other extraneous (for now) devices like any built in serial and parallel ports. The best way to do this is probably to disable them in the BIOS. If the PCMCIA card works properly then try to reconfigure disabled devices one at a time.
Make sure the latest BIOS is installed.
Check for any unusual PCMCIA drivers or other software that might interfere with the PCMCIA driver.
I hope this helps.
Ron
Applications Engineering
National Instruments
Attachments:
ni-cdu1610.exe 1557 KB -
With the new Keynote upgrade (version 6.1), the slide image size on handouts is very small, which makes it difficult to read slide content when compiling lecture notes for students. Is there a way to make the slide size larger while still keeping to a format of 3 slides per page with lines?
A number of posts have reported the same issue, two workarounds:
1
check the paper handling options or equivalent in your print dialogue box and set to scale to fit
2
in the Keynote option, in the dropdown menu in the Print section, select Individual Slides
then choose Layout, and set the number of pages, when printed you will have multiple pages on a single sheet. -
Firefox will not allow me to click on more than one link in a sequence. After one click, I am forced to switch to another active application before returning to Firefox and clicking on another link. I have seen this problem posted by others, but I can't find an answer by Mozilla. Since this problem makes Firefox virtually unusable (version 3.6.8) I would hope that Mozilla would offer an answer ASAP. Until then, I'm stuck with Explorer.
== This happened ==
Every time Firefox openedDo you have that problem when running in the Firefox SafeMode?
[http://support.mozilla.com/en-US/kb/Safe+Mode]
''Don't select anything right now, just use "Continue in SafeMode."''
If not, see this:
[http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes] -
Using windows 8.1 and photoshop cs4 the font size of the MENUS is so small as to be almost unreadable. how do i make the menu fonts larger. this is happening also with bridge
Thank you so much. You are absolutely right. I will have to reduce the screen density when I work with those programs.
Thanks for your trouble and regards
Quentin Sussman
<mailto:[email protected]> [email protected]
Cell: 082 4900 124
Home: 011 883 2582
Fax: 086 680 7981 -
How to make the menu fonts larger in Bridge CC 2014?
I just upgraded my monitor to a 3840x2160 HiRez & Photoshop CC 2014 /Bridge CC 2014. I have been able to make the menu fonts large enough to read in Photoshop CC but not for Bridge. Any suggestions on how to enlarge the fonts in Bridge?
Thanks!Add code to the <b>userChrome.css</b> file below the default @namespace line.
*http://kb.mozillazine.org/userChrome.css
<pre><nowiki>@namespace url("https://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#places * { font-size:16px !important; }
</nowiki></pre>
The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
*http://kb.mozillazine.org/Editing_configuration -
Problems in IE9 32 bit browser but not 64 bit
When I delete a message(s) in Yahoo Mail or when I go to my mortgage website and login, I get a blank page and then nothing happens. I only get this problem in IE9 32 bit and not 64 bit. I reset IE9 Options under the advanced tab, updated Java
and Adobe, but the problem still persists. I also did a viral scan using MSE and MalwareBytes and my computer is clean. Can someone help. Thank youIE9 is fairly old, upgrade you browser.
-
Make a windows partition larger?
I have a windows partition running XP in Boot camp with 10.8.2. (10.8 requires Win7 unless you upgrade to ML from Lion with an existing XP partition)
Is there an easy way for me to make the windows partition larger without wiping it out and reinstalling everything?Paragon Camp Tune, it's $20
-
Is there any way to make the cursor appear larger in Mac OS X?
Wow, love my 27" screen, but have trouble finding the cursor! Is there any way to make the cursor appear larger? Perhaps adjustable for fine print capture?
Thanks!System Preferences -> Universal Access -> Mouse -> Cursor size
However, I prefer using Mouse Locator (free download)
<http://www.versiontracker.com/dyn/moreinfo/macosx/26157>
I like this Mouse Locator Graphic
<http://homepage.mac.com/douglasn/locatorexchange/AD/1/MouseLocator.png>
I also enjoy my 27" iMac. It is just so nice withing on it.
Message was edited by: BobHarris -
The requested transformation would make some objects too large.
Please help.
I load a PNG in Illustrator. However when it loads it doesn't load right. It loads HUGE. When I try and move it, it says:
"Can't move the objects.The requested transformation would make some objects too large."
I am pulling my hair out here. Why the hell can't Illustrator just open a bloody PNG and allow me to edit it?!
Any advice would be appreciated. Thanks.I see, Christopher.
It seems that something is seriously wrong.
You may try the following (you may have tried/done some of them already) and see whether it helps (the following is a general list of things you may try when the issue is not in a specific file; 3) and 4) are specifically aimed at possibly corrupt preferences):
1) Close down Illy and open again;
2) Restart the computer (you may do that up to 3 times);
3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
4) Move the folder http://www.bugge.com/Family-and-friends/Illy/illy.html (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
Even more seriously, you may:
6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
http://www.adobe.com/support/contact/cscleanertool.html -
How to make fonts on menus larger
I just installed elements 11. The font size on many of the selections is small, too small to easily see with my level of vision (bifocals). Examples are the Quick and Guided edit menu picks, the popups when you curser over a tool. Can anyone tell me how to make the type size larger?
Thanks!
Tucker CoxYou may need to reduce the display setting via the control panel below the native resolution of your monitor.
However this may affect the appearance of other applications. -
How do I make previews (not thumbnails) larger in Bridge?
How do I make previews (not thumbnails) larger in Bridge?
I agree with Yammer.
What I do is move my Preview panel to the middle (just drag and look for the "blue" placement cues) and have the Content Panel on my right. By dragging the size of your Bridge window or by dragging the panels separation regions left or right, you can increase the size of your Preview window to your satisfaction.
I've no clue as to why Adobe chose the workspace they did. -
Contexts: I am very competent with GFX and have worked on many projects.
When dragging an image onto a fresh canvas, the resizing feature presnaps the image into the canvas size. I can confirm that this has not happened to me in previous projects. I've also tested this problem by making a new larger document size and dragging in the same render. It snaps again. I don't want to re-size from the canvas dimensions, I want to resize from the render's original dimensions.Ap_Compsci_student_13 wrote:
ok sorry but doesn't sscce say to post the whole code?the first S is Short, and yes, it needs to be all the code needed to illustrate the problem and let use reproduce it. If you were developing a new Web framework, your example might be short, but for a student game it's very long.
Maybe you are looking for
-
Wants to eliminate null values from mapping queue
Hi All, How can I eliminate null values from 'display queue' of a target mapping. Can it be done through a UDF? Kindly help. Because of null value, it is creating issue in the mapping logic. Thanks, John
-
How to connect my imac to my tv ?
How do I connect my Imac to my TV ? Is there an easy way, Any body can help? I'm new to the Mac world. Thank you in advance
-
why not create a command that shows you how many miles the paket travel to distination . that way you can figure out your lentency right there base on the distance.. show distance x.x.x.x it will show you the distance from b/w the interface you are s
-
Transmitting MIDI clock from Mainstage - is it possible?
Hi I've just upgraded from Mainstage V.1 to V 2.1.1. I have previously been unable to transmit MIDI clock from MS to external MIDI devices (specifically a DSI Tetra) in order to sync arpegiator, sequencer, LFOs etc. I can't find any mention of it in
-
Help I've sent a group message and now all the numbers I sent it to have each others numbers why?