margins

Java: remove margin / padding on a JTabbedPane

依然范特西╮ 提交于 2019-12-01 05:49:48
I'd like to know how to remove the margins between my JtabbedPane and my JFrame content pane and between my JTabbedPane and its internal JPanel. I circled the margins I want to remove. the green line is here to show the gap between the jpanel inside the jtabbedpane. I tried to look at some method named setMargin but it doesn't exist on a JTabbedPane. I also checked the Hgap and Vgap (both = 0) on the different layout (root content pane, my jpanel, etc). So any suggestions are welcome. Thanks. . I can't post images yet. It is up to the look and feel to decide how much space is around components

Java: remove margin / padding on a JTabbedPane

China☆狼群 提交于 2019-12-01 03:32:05
问题 I'd like to know how to remove the margins between my JtabbedPane and my JFrame content pane and between my JTabbedPane and its internal JPanel. I circled the margins I want to remove. the green line is here to show the gap between the jpanel inside the jtabbedpane. I tried to look at some method named setMargin but it doesn't exist on a JTabbedPane. I also checked the Hgap and Vgap (both = 0) on the different layout (root content pane, my jpanel, etc). So any suggestions are welcome. Thanks.

CSS 2.1 spec: rationale for not collapsing margins of parent (when parent is float or has overflow other than visible)

為{幸葍}努か 提交于 2019-11-30 16:19:30
The CSS 2.1 specification, section 8.3.1 on collapsing margins states: Margins of elements that establish new block formatting contexts (such as floats and elements with 'overflow' other than 'visible') do not collapse with their in-flow children. It took me a while to realize that the block formatting context is the context that is established by the parent and applied to the children, so that to make any difference, the float or overflow properties have to be adjusted on the parent element (rather than to the children). In the following code snippet, border heights of adjacent child div

CSS page headers - how to use print margins?

天大地大妈咪最大 提交于 2019-11-30 08:52:26
I can get a header to print on each page, but I'm new to print margins. I thought the @page css would work, but it does not seem to affect page margins. If I set the margins on the body, it works on page one, but subsequent pages start the top margin at the default, putting the header over top of the text. <style> .header { position: fixed; top: 0; } @page { size: 11in 17in; margin-left: 1in; margin-right: 1in; margin-top: 1in; margin-bottom: 1in; } </style> <body> <span class=header>This is the header</span> This is the text of the document. (repeat until I get to page 2) </body> Printing

How to add more margin to a heatmap.2 plot with the png device?

落爺英雄遲暮 提交于 2019-11-30 07:03:44
I have the following example data: sel = structure(c(1.29955, 2.52295, 1.11021, 2.52008, 8.20255, 8.50118, 5.82189, 5.8108, 1.55928, 8.2552, 5.25119, 5.55055, 1.22525, 3.152, 3.9299, 5.50921, 5.25591, 5.11218, 1.55951, 2.5525, 9.2358, 2.0928, 5.2538, 2.5539, 8.52592, 2.59521, 5.55858, 5.92955, 2.22089, 1.52105), .Dim = c(10L, 3L), .Dimnames = list(c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"), c("Label.1", "Label.2", "Label.3"))) And I use this code to plot the figure: col = c("#FF0000", "#FF0000", "#FF0000") par(mar=c(7,4,4,2)+0.1) png(filename='test.png', width=800, height=750) heatmap

how to remove the gap between subplots and around [duplicate]

天大地大妈咪最大 提交于 2019-11-30 07:03:26
This question already has an answer here: MATLAB subplot margin 3 answers I am plotting two subplots (2x1) in one figure. I would like to remove all the spacing between two subplots and remove the xlable and xlabel ticks for the top subplot too. Also, I am trying to remove all the spacing outside the subplot. I try set(gca, 'LooseInset', get(gca,'TightInset')) But it doesn't work. Now I am removing those margins and labels manually, I have 60 figures need to be handled and doing all those manually is time consuming. Any better way to do it? Thanks. I also try the subtightplot, it helps to

CSS 2.1 spec: rationale for not collapsing margins of parent (when parent is float or has overflow other than visible)

我与影子孤独终老i 提交于 2019-11-29 23:22:32
问题 The CSS 2.1 specification, section 8.3.1 on collapsing margins states: Margins of elements that establish new block formatting contexts (such as floats and elements with 'overflow' other than 'visible') do not collapse with their in-flow children. It took me a while to realize that the block formatting context is the context that is established by the parent and applied to the children, so that to make any difference, the float or overflow properties have to be adjusted on the parent element

How to add more margin to a heatmap.2 plot with the png device?

怎甘沉沦 提交于 2019-11-29 08:35:07
问题 I have the following example data: sel = structure(c(1.29955, 2.52295, 1.11021, 2.52008, 8.20255, 8.50118, 5.82189, 5.8108, 1.55928, 8.2552, 5.25119, 5.55055, 1.22525, 3.152, 3.9299, 5.50921, 5.25591, 5.11218, 1.55951, 2.5525, 9.2358, 2.0928, 5.2538, 2.5539, 8.52592, 2.59521, 5.55858, 5.92955, 2.22089, 1.52105), .Dim = c(10L, 3L), .Dimnames = list(c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"), c("Label.1", "Label.2", "Label.3"))) And I use this code to plot the figure: col = c("#FF0000"

Vertical margins disappear when parent is set to overflow:visible

社会主义新天地 提交于 2019-11-29 07:32:43
Why do vertical margins disappear when the parent is set to overflow:visible? If it's set to overflow:hidden margins are visible again. It seems counterintuitive. I think I understand how overflow is supposed to work when content of an element can't fit into it, but I don't understand what is happening with the margins. Here's an example: ( http://jsfiddle.net/VrVc7/ ) #outer { background-color:#EEE; overflow:hidden; } #inner { margin: 30px; padding: 5px; background-color:#ABE; } <div id="outer"> <div id="inner">abc</div> </div> It's because of collapsing margins: If you have overflow: hidden,

Remove margin in android toolbar icon

一世执手 提交于 2019-11-29 03:18:15
I get this weird margin in my app toolbar between icon and navigation icon in the toolbar (as in the image). I've got no idea about where it comes from and how to remove it. After searching the internet I found this: <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_height="wrap_content" android:layout_width="match_parent" android:fitsSystemWindows="true" android:minHeight="?attr/actionBarSize" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" android