borderless

remove cells border in a jtable

落爺英雄遲暮 提交于 2019-11-28 09:01:30
I have my on custom cell renderer and want to remove the border of the cell. How can i do it? I tried setBorder but it doesn't work. Here is my renderer code: public class MyTableCellRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = -1195682136616306875L; public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (!isSelected) { if (row % 2 == 0 && row != 1) { c.setBackground

How to Create Borderless Buttons in Android [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 02:44:43
This question already has an answer here: How to create standard Borderless buttons (like in the design guideline mentioned)? 19 answers The Android Design Guidelines say to use borderless buttons (see picture below), but don't really explain how. Someone asked this same question a few weeks ago here: How to create standard Borderless buttons (like in the design guidline mentioned)? and there was an answer marked as "the" answer, but I am still lost and I don't see a way to add comments to a question that has been "closed" The answer-er said "Look into the theme attributes buttonBarStyle ,

How to fix borderless form resize with controls on borders of the form?

微笑、不失礼 提交于 2019-11-28 00:27:29
I have a borderless winForm which I needed to resize, and I managed to do it this way: protected override void WndProc(ref Message m) { const int wmNcHitTest = 0x84; const int htLeft = 10; const int htRight = 11; const int htTop = 12; const int htTopLeft = 13; const int htTopRight = 14; const int htBottom = 15; const int htBottomLeft = 16; const int htBottomRight = 17; if (m.Msg == wmNcHitTest) { Console.Write(true + "\n"); int x = (int)(m.LParam.ToInt64() & 0xFFFF); int y = (int)((m.LParam.ToInt64() & 0xFFFF0000) >> 16); Point pt = PointToClient(new Point(x, y)); Size clientSize = ClientSize;

How can I create a borderless application in Python (windows)?

匆匆过客 提交于 2019-11-27 18:37:58
问题 I would like to know how to create an application in Windows that does not have the default border; particularly the title bar with minimize, maximize, and close buttons. I'm thinking of writing a ticker program that takes up a narrow space at the top or bottom of the screen, but I won't attempt it unless it's possible to make a thin application in Python. Any help with terminology is appreciated; maybe I don't know how to ask the right question in searching. Does Tkinter have this option?

PyQt4: how to make undercorated window with reserved space

半城伤御伤魂 提交于 2019-11-27 07:31:54
问题 I'd like to make a panel-like application using PyQt4 for Linux. for this i need the window i created: to be undecorated to have reserved space to appear on all workspaces From reading the documentation i've got the idea that i should use QtWindowFlags. But i have no clue as to how to do that. Also i believe there should be a Qt.WindowType hint somewhere telling the WM the window's a "dock" application. I have made this with pygtk following this thread, but here with Qt i don't really know

remove cells border in a jtable

别等时光非礼了梦想. 提交于 2019-11-27 02:40:16
问题 I have my on custom cell renderer and want to remove the border of the cell. How can i do it? I tried setBorder but it doesn't work. Here is my renderer code: public class MyTableCellRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = -1195682136616306875L; public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = super.getTableCellRendererComponent(table, value,

How to Create Borderless Buttons in Android [duplicate]

拈花ヽ惹草 提交于 2019-11-26 23:48:02
问题 This question already has answers here : How to create standard Borderless buttons (like in the design guideline mentioned)? (19 answers) Closed 5 years ago . The Android Design Guidelines say to use borderless buttons (see picture below), but don't really explain how. Someone asked this same question a few weeks ago here: How to create standard Borderless buttons (like in the design guidline mentioned)? and there was an answer marked as "the" answer, but I am still lost and I don't see a way

Borderless Window Using Areo Snap, Shadow, Minimize Animation, and Shake

筅森魡賤 提交于 2019-11-26 21:56:50
I am making a application with a borderless window on Windows. However, since the window is borderless, I have no areo shadow, snap, minimization animation, or shake. I have looked around and found no site that explains how to implement this. However, I know it is possible because Office 2013, Visual Studio 2012, and Steam all have these features and are borderless. I am specifically using QT and C++ but if you have solved this for another windowing library I would like to hear your solutions as well. either. And by areo shadow I don't mean drop shadow on two sides, I mean the glowing shadow

How to fix borderless form resize with controls on borders of the form?

南笙酒味 提交于 2019-11-26 21:42:11
问题 I have a borderless winForm which I needed to resize, and I managed to do it this way: protected override void WndProc(ref Message m) { const int wmNcHitTest = 0x84; const int htLeft = 10; const int htRight = 11; const int htTop = 12; const int htTopLeft = 13; const int htTopRight = 14; const int htBottom = 15; const int htBottomLeft = 16; const int htBottomRight = 17; if (m.Msg == wmNcHitTest) { Console.Write(true + "\n"); int x = (int)(m.LParam.ToInt64() & 0xFFFF); int y = (int)((m.LParam

How to create standard Borderless buttons (like in the design guideline mentioned)?

穿精又带淫゛_ 提交于 2019-11-26 11:59:00
I was just checking the design guidelines and wondering about the borderless buttons. I goggled and tried to find in the source but can't bring it together by myself. Is this the normal Button widget but you add a custom (Android default) style? How to make these borderless buttons (of course you can set the background to empty, but then I don't have the divider)? Here links to the design guidelines: http://developer.android.com/design/building-blocks/buttons.html http://developer.android.com/guide/topics/ui/controls/button.html#Borderless To clear some confusion: This is done in 2 steps: