Can't drag the border of JTabbedPane
Hi,
I met a problem in programming JTabbedPane. I am now fixing some bugs in a existing project, so I am not familar with JTabbedPane.
In my case, I am not able to adjust the size of JTabbedPane by dragging the border of it. This JTabbedPane is in the right side of a JSplitPane. However, if the right side pane is replaced by a JLabel, then I can drag the border of JLabel.
I don't why it happens? Does this mean once a JTabbedPane is created (includes it's component inside), I can't change it size anymore? Is there any one who can give me any ideas?
Thanks
Feng
Yes, I also got this conclusion. The problem is caused by the size of inside component.
There are one JLabel and one JTextField inside my JToolbar. If the string in the JTextField is short, I am able to adjust the width of JToolbar, however, only made it bigger. But if the text inside the JTextField is longer than than the width of screen. the edge of JToolbar is no longer able to be adjusted.
I know the cause is the size of text in the JTextField. It made the JTextField very long. I know the reason, but I don't know how to solve it. Any one could help me for that?
Thanks
Feng
Similar Messages
-
HT1203 How do you put music from one itunes account to another? Can you drag the music?
How do you put music from one itunes account to another? Can you drag the music?
You can use Home sharing
-
I would like to copy my iPhoto (9.4.1) library from my Mac Pro (10.7.5) to a Macbook Pro (10.7.5). Can I drag the iPhoto Library from the Pictures folder to Air Drop and send them to the MacBook? If I then move that to the Pictures folder on the MacBook will that then be a usable iPhoto library on the Macbook?
It would be better if you could connect the two Macs via a hard wired LAN to copy the library from the Mac Pro to the MacBook. Wireless connections can have momentary dropouts which could affect the reliable copying of files.
If you do go with Air Drop be sure to open and inspect the copied library closely to confirm it was a successulf copy.
OT -
How do I put shortcuts to web sites in a (?) tool bar/browser bar...don't know what it is called. With IE, I can just drag the tab for the site to the area I want
Near the right-end of the address bar is a white star which can be difficult to see, but look closely. When you wish to bookmark a shortcut to the toolbar, double click the star. A window will open with the name of the webpage. Under that is the folder box which will probably read 'Unsorted Bookmarks'. Click the drop down arrow and change it to 'Bookmarks Toolbar' then click done.
I have several folders on my toolbar such as Music, Mail, etc. in which I add multiple websites. If you wish to add a folder, click the second drop down arrow next to 'Bookmark Toolbar' and click 'New Folder' and give it a name.
To add a bookmark to a folder, again double click the star, make sure you are in Bookmark Toolbar and click one of the two drop down arrows to find the name of the folder.
For other bookmarks use Bookmark Menu. Whatever is added here can be accessed by Bookmarks on the Menu Bar. If your Menu Bar with Bookmark, File, View, etc. is not visible, click the Alt key and they will become visible. To keep the Menu Bar, click View, Toolbars and check Menu Bar. -
How can I see the border of a label
I'm wondering how can I see the border of a label.
I'm trying using the following command but is giving me an error that cannot resolve symbol setBorder. There is another way to do this?
label_01.setBorder(BorderFactory.createLineBorder(Color.black));the awt Label class doesn't have a setBorder method, you need to use a JLabel
asjf -
I can't drag the Icon into the Applic. folder
I have a iMac and can't drag the FF icon into the Applications folder
Firefox 5 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 5 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html -
Can't drag the divider of HDividedBox
hello everyone, this is my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" >
<fx:Script>
<![CDATA[
protected function btnRemove_clickHandler(event:MouseEvent):void
while(hbox.numChildren>0){
hbox.removeChildAt(0);
protected function btnAdd_clickHandler(event:MouseEvent):void
hbox.addChild(a);
hbox.addChild(b);
protected function btnAddNew_clickHandler(event:MouseEvent):void
var p:Panel = new Panel();
p.title = "C";
p.percentWidth = 50;
hbox.addChild(p);
var p2:Panel = new Panel();
p2.title = "D";
p2.percentWidth = 50;
hbox.addChild(p2);
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:Button label="Remove" id="btnRemove" click="btnRemove_clickHandler(event)"/>
<s:Button label="Add" id="btnAdd" click="btnAdd_clickHandler(event)"/>
<s:Button label="AddNew" id="btnAddNew" click="btnAddNew_clickHandler(event)"/>
<mx:HDividedBox width="100%" height="100" id="hbox">
<mx:Panel title="A" id="a" width="100%" height="100%">
</mx:Panel>
<mx:Panel title="B" id="b" width="100%" height="100%">
</mx:Panel>
</mx:HDividedBox>
</s:Application>
my problem is :
when i first load the application,i can drag the divider of HDividedBox.
after i click the remove button,remove all children of HDividedBox.
i click Add Button ,add the old child, but i can't drag the divider again.
i click AddNew Button ,sometime can drag the divider but sometime can't
it is so strange.i cost a lot of time on it ,but can't find the reason.i need some help to resolve it,thanks!Try adding hbox.validateNow() after adding or removing children?
-
My I pod only works with double click and I can't drag the screen with my finger?
Hi,
My i-pod doesn't work very well at the moment.
I can't drag over the screen en have to double click on my screen. I can't drag the screen from left to rigth and not from above to below.
The hard reset didn't work and i can't reach the menu where i can restore all setting. My son alternated one of the direction.
who can help me?
thanks
gtz TonYou have the accessibility VoiceOver feature turned on.
Triple click the home button and try going to Settings>General>Accessibility and turn VoiceOver off. You may have to use three fingers to scroll the screen to get there. If problems see the following for how to turn off via iTunes:
iPhone: Configuring accessibility features (including VoiceOver and Zoom) -
I am new to Acrobat and FormsCentral of course.
I have three rows of text boxes, something like this:
Name
(other text fields)
Primary Address
I want the input box to be immediately following the label; for example (pretend the underline is the input box:
Name ___________
(other text fields)
Primary Address ___________
However, Forms Central looks like this:
Name _________________
(other text fields)
Primary
Address ______________
When I try to edit the Primary Address box, either by dragging the right label edge or the left text box edge on that field, it also drags the edges of the fields above it!
Is there a way NOT to do this?
I've been trying to find tutorials on how to manipulate the design/layout of the forms, but so far all the YouTube and other tutorials I've seen simply do a vertical form, one field per line.
Thanks!You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
Thanks,
Josh -
How can I change the border size in Numbers? The border when I print is Way big.
Just updated numbers and now when I print it has a 2" border around my spreadsheet. Basically shrinking it on the page by 50% !! Can't seem to find a way to change it so I can print on the whole piece of paper. HELP?!
Jeff,
Printing has definitely gotten worse with Numbers 3.0. Apple published a list of items they are addressing here:
http://support.apple.com/kb/HT6049
You can continue to use the previous version which is located in the folder "/Applications/iWork '09"
The only way I know to "fix" this problem is to print to PDF directly to Preview, then crop (using the rectangular selection tool and the menu item "Tools > Crop") and print again. -
How can I draw the tab of JTabbedPane as an image?(urgent)
I would like to draw a JTabbedPane with a tab as an image or set the its size like I want.
Any help is appreciated.Hi,
you can set size the tabs by using the tabInsets key.
Notice also the textIconGap key.
UIDefaults ui = UIManager.getDefaults();
ui.put("TabbedPane.tabInsets", new javax.swing.plaf.InsetsUIResource(10,10,10,10));
"TabbedPane.textIconGap" int
These are the keys and values connected with TabbedPane.
If you need further customization of the tabbed pane I would suggest building your own.
"TabbedPane.selected", Color
"TabbedPane.tabRunOverlay" int
"TabbedPane.tabAreaInsets" InsetsUIResource
"TabbedPane.shadow" ColorUIResource
"TabbedPane.selectedTabPadInsets" InsetsUIResource
"TabbedPane.highlight" ColorUIResource
"TabbedPane.lightHighlight" ColorUIResource
"TabbedPane.font" FontUIResource
"TabbedPane.foreground" ColorUIResource
"TabbedPane.background" ColorUIResource
"TabbedPane.focus" ColorUIResource
"TabbedPane.darkshadow" ColorUIResource
"TabbedPane.contentBorderInsets" InsetsUIResource
-Michael -
Can't drag the finder title anymore
Once upon a time I could drag the title of a finder window (say /Volumes/backup) into the terminal window.
Now I get all this in the terminal window:
Backup :
.com.apple.timemachine.supported
.DS_Store
.fseventsd:
00000000012157c9
000000000121711f
0000000001218896
000000000121da1f
0000000001abbf25
0000000001ac1b3b
0000000001f03385
fseventsd-uuid
.Spotlight-V100:
Store-V1:
Stores:
5D6632F5-B90F-4884-A658-61D8E4F5117F:
.store.db
0.indexArrays
0.indexCompactDirectory
0.indexDirectory
0.indexGroups
0.indexHead
0.indexIds
0.indexPositions
0.indexPostings
0.indexUpdates
0.shadowIndexGroups
0.shadowIndexHead
indexState
journalAttr.35
journalExclusion
journalLive
journalSync
live.0.indexArrays
live.0.indexCompactDirectory
live.0.indexDirectory
live.0.indexGroups
live.0.indexHead
live.0.indexIds
live.0.indexPositions
live.0.indexPositionTable
live.0.indexPostings
live.0.indexTermIds
live.0.indexUpdates
live.0.shadowIndexArrays
live.0.shadowIndexCompactDirectory
live.0.shadowIndexDirectory
live.0.shadowIndexGroups
live.0.shadowIndexHead
live.0.shadowIndexPositionTable
live.0.shadowIndexTermIds
store.db
store.updates
VolumeConfig.plist
.Trashes:
(access denied)
What is all this and how do I get it so I just get '/Volumes/Backup' again?
Thanks in advanceWhat you drag is the little "proxy icon" in front of the name of item in the Finder window, and I don't know why yours isn't working--mine does. It looks like what you are getting is the result of a ls -a command. Anyway, if type ls -a, a space, and then drag 'n drop the proxy icon into Terminal, I get this:
NoobiX:~ francine$ ls -a /Volumes/Time
.VolumeIcon.icns
.com.apple.timemachine.supported
.0017f20dca84
.fseventsd
.DS_Store
Backups.backupdb
.Spotlight-V100
Desktop DB
Desktop DF
.Trashes
For a mounted disk, you can also just drag its icon from the Desktop into Terminal.
Francine
Francine
Schwieder -
IDD CS3 Can't drag the window completely open
This is weird - When working in InDesign (3), Mac osx, oftentimes I cannot drag the lower corner to open up the window. I can make it smaller/narrower but not full screen. I sometimes want to see all the text but also see whatever is on the pasteboard.
Right now, for example, the window will only allow itself to be dragged 1/2 the width of my screen.
It's not like this all the time, and I can't find the answer to the problem. It's not a View thing.Do you have palettes open on the side? If so collapse them and you should be able to open the window.
-
How can i remove the border of TextField
Hi,first i set the border of textfield in my program now i want to remove this border and want to set the default border.how can i do that.
thankstry this,
UIManager.put("TextField.border", new EmptyBorder());
or maybe set the border part to null. I think it works.
by the way put this line right at the start of your program so that all text fields will be shown without borders.
Jim -
How can i custom the border of a JMenu ?
Hello everydoby,
i would like to custom the border of a JMenu.
i know that it's possible to custom the border of a JMenuItem.
but for JMenu, the thing seems to be more difficult.
can you help me please ?
thanks for all.
FMA.I badly expressed myself, sorry.
With JMenu and JMenuItem there are in fact no problems.
What I wish it is to be able to for a given Jmenu (which has his own border - ok), all the associated JMenuitem are surrounded with one global border.
if i set the border for each JMenuitem, I do not obtain the expected result.
FMA.
Maybe you are looking for
-
I have an iMac mid 2010. After Disk utilities said the drive was corrupt, I ran the hardware test (extended) 3 times. No problems. I than ran Disk utility again and got 2 messages in red-keys out of order, and --Volume corrupt, can't be repaired. I t
-
How to determine the logical Keys of logical fact table in BMM layer?
Hello guys I'd like to know more about how to know what columns of the logical fact table should be used as key in BMM layer. How OBIEE behaving differently when different keys are selected? In my situation, I have 1 fact table that physically joins
-
Have a read of my Blog on Mobility for SAP Business One
Have a read of my Blog on Enterprise Mobility. Any comments welcome: [http://www.timtheguest.net/blog/2011/07/17/Enterprise-Mobility-Should-we-bother-What-are-the-risks-rewards.aspx]
-
Business packages for BW Reports
Hi, Are there business packages for all the standard BW Content reports?.I have found some in sdn.sap.com...like sales analysis, inventory analysis...etc.Can we use one single business package(ex:sales analysis) partially....? Thanks in advance
-
Thunar doesn't preview desktop icons
I'm not sure if I am the only one having this problem, but for me Thunar refuses to generate previews for files sitting on my desktop. I can see previews just fine when I open Thunar as a windowed application, but not when it is managing the desktop: