Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing number of rows of tabs visible in NetBeans

There are times when I have a decent number of source files open at once. Is there a way to change the number of rows of tabs that are visible while working in NetBeans?

Also, I have a dual monitor setup here. I could span NetBeans across the two monitors if it were possible to have multiple NetBeans editor windows open at the same time. This is something that I use in the VS Express editions. I tend to group my source files on one monitor and the designer windows in the other. Can I do this in NetBeans?

like image 766
Buggabill Avatar asked Oct 26 '09 15:10

Buggabill


People also ask

How to change the color of column header in NetBeans JTable?

JTableHeader TblHeader = MyTbleView .getTableHeader (); TblHeader.setForeground (Color. RED ); If you are using NetBeans for swing GUI project using jTable, the column header color will apply in different coding way. You have to use DefaultTableCellRenderer class in NetBeans Code. There is simple code for doing this.

Is this NetBeans 8 menu item still valid?

These menu items remain valid as of NetBeans 8.0. Show activity on this post. It seems to work if you select the same value for "Number of Spaces per Indent" and "Tab Size", after unchecking the "Expand Tabs to Spaces" Option, in Tools -> Options -> Editor -> Formatting, for example:

How do I change the size of tabs in the editor?

Go to Tools-> Options-> Editor-> Formatting and uncheck Expand tabs to spaces: Ensure you also pick coherent values for "Number of Spaces per indent" and "Tab Size". Additionally, you can check all the items in the Language combo and make sure they all use the general setting. You can also change it in a per-project fashion.

How do I change the background color in NetBeans?

If you are using NetBeans, then you can simply go to “Properties” window and find “selectionBackground” and “selectionForeground” option and choose color according to your requirement. Steps are described in given following image:


2 Answers

for versions 8.0.2+:

Tools -> Options -> Appearance -> Document Tabs -> Multi-row tabs

You can also maximum row count if you wish (the default is 3).

like image 164
DarthRez Avatar answered Sep 18 '22 13:09

DarthRez


There are 2 way's I have done this:

  • Drag a tab from the editor panel to the side of the editor window until the red outline shows a rectangle running from top to bottom. Drop the tab there and you get another editor pane. Opening from Project or Files will still use the original panel, but you can drag tabs between the panels.
  • Right click on a tab and choose "Undock Window". This will create a top-level window independent of the main NB window.

When you create files with keyboard shortcuts (eg, Ctrl-N for new file) they will open in the current panel. Likewise, navigating to other files (eg, Ctrl-Shift-B for go to source).

It's not perfect though. Some keyboard actions will dump you back to the main window, then it's Alt-Tab or fiddle with the mouse to get back.

like image 29
Devon_C_Miller Avatar answered Sep 21 '22 13:09

Devon_C_Miller