I want to be able to move my tabs in my jTabbedPane left or right to change the sorting order. I looked around but I noticed most of what I found is asking how to drag and drop a tab in. I just want to make it resortable so that I can move the rightmost tab to the left of the leftmost tab or any order I want.   I know for table columns in a JTable, there is a method, something along the lines of   JTable table = new JTable(); table.setReordering(false); //disables reordering of columns   which prevents this so this functionality is already enabled with columns in tables but with tabs in JTabbedPanes, I cannot find any method similar to this but I'm thinking it would be something similar like  tab.setReordering(true)    as well but I don't see anything.
103233
How do I implement a draggable tab using Java Swing? Instead of the static JTabbedPane I would like to drag-and-drop a tab to different position to rearrange the tabs.  EDIT: .
70592
How can I switch to the document to the left or right of the current document in Notepad++?   For example, if I have documents A, B, and C open, and I'm currently editing B, I would like a shortcut to be able to:   switch to document A, like. . . (Alt-LeftArrow or Ctrl-Pageup)    OR   switch to document C, like. . . (Alt-RightArrow or Ctrl-PageDown).    All I've found is a way to switch to next or previous documents based on the "history" of when the document was last opened, for example:  (Ctrl-Tab and Ctrl-Shift-Tab)  The examples I have found are useful, but not what I want.  Is what I am asking for possible?
48198
I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By "not completely automated" I mean that e.g. the headers can be done seperately etc.  Let's see the MWE:  \documentclass{article}  \usepackage{booktabs} \def\Midrule{\midrule[\heavyrulewidth]}  \begin{document}  \centering  \begin{tabular}{*6c}\toprule \bfseries Name &amp; Alice &amp; Bob &amp; Chuck &amp; Dave &amp; Eve\\\Midrule \bfseries Sex &amp; Female &amp; Male &amp; Male &amp; Male &amp; Female\\\midrule \bfseries Age &amp; 18 &amp; 19 &amp; 20 &amp; 21 &amp; 22\\\bottomrule \end{tabular}  \bigskip  Which I want to look like  \bigskip  \begin{tabular}{*3c}\toprule \bfseries Name &amp; \bfseries Sex &amp; \bfseries Age\\\Midrule Alice &amp; Female &amp; 18\\\midrule Bob &amp; Male &amp; 19\\\midrule Chuck &amp; Male &amp; 20\\\midrule Dave &amp; Male &amp; 21\\\midrule Eve &amp; Female &amp; 22\\\bottomrule \end{tabular}   \end{document}     Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this).
91714
I've read the Android design conventions, but can't see a good solution.  I have a 3 tab mobile application. Tabs 2 and 3 need a selection made on screen 1 before they will work. The user enters at Screen 1, and the tab options are along the top. If they attempt to open screen 2 or 3, I would like to advise them to make a selection first. 'notifications' are the closest answer I can see from the Android design guidelines. Anybody have any other solutions?  Thanks  Andy
92650
Possible Duplicates:           Is it at all possible to have the Tab key insert 4 spaces in the question/answer edit area, instead of moving focus to the next control?  When writing code in questions or answers I could really use such functionality, especially for hierarchically indented code, like this:  codecode codecode      codecode         codecode         codecode     codecode   What I usually do is copy 4 spaces and then paste them over and over again, but using Tab is more natural (I actually do it by mistake quite often).  I think the usage of Tab for moving focus while editing a question/answer is minimal, and its benefits are insignificant versus the benefits of allowing Tabbed code.  A "neater" feature will be to push not 4 spaces but the differences between the next multiple of 4 and the current amount of spaces in the line (e.g. if I pressed once on space and then Tab, the Tab will insert 3 spaces, like "real" tabulation)
30206
Downloaded Ubuntu tweak and set window controls to the right side. Only some programs follow the rule. Pidgin as an example has window controls on the right. But Chrome, Thunderbird, Geany, still have controls on the left.  How can I move ALL window controls(close/min/max) to the right (or left)?
56494
I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments.  Is there a way to add a simgle tab like in any text editor? I use MathType to make equations writing much easier and there you can insert tabs, so when you export the code you see MathType uses &amp; for that, but when you compile that code, LaTeX complains with:  Misplaced alignment tab character &amp;.   So somehow LaTeX knows that I'm trying to add a tab and it's driving me crazy.  I thought to create my own "tab" macro or command: the idea is to tell LaTeX to go back to the left (or right) margin with \hspace and the move to the "tab" with another \hspace, something like:  Hi everybody. \hspace{-len_to_left_margin} \hspace{tab_value} My name is Agustin.   Is that posible?
9429
I can’t get used to the new Unity system. I’d like to move the left Unity panel to the bottom of screen (like Windows 7 – more similar is better).  But I can't find a way. Is it possible?
119370
I have a tabular which relies on a number of packages to achieve the desired appearance, specifically:   Scale text to a particular (smaller) size Force column wrapping instead of shrinking text further Increase space between different rows to distinguish between wrapped items Disable right justification and hyphenation for a tidier look   I discovered that the table will end up needing to span multiple pages, but in this situation longtable is not a drop-in replacement for tabular and I am getting confused with the number of packages involved. How can I achieve the desired effect (a tabular spanning multiple pages, with all other visual elements, including the float caption, retained)? As a second question, can what I've written be simplified in some way?  \documentclass{scrartcl} \usepackage{booktabs,array,parskip,adjustbox,enumitem} \usepackage[UKenglish]{babel} \newcolumntype{x}[1]{&gt;{\raggedright}p{#1}} \begin{document}   \begin{table} \begin{hyphenrules}{nohyphenation} \renewcommand{\arraystretch}{1.5} \caption{Example table}\label{tab:example} \centering \begin{adjustbox}{width=1\textwidth} \begin{tabular}{x{.2\columnwidth}@{\hskip 6\tabcolsep}x{.4\columnwidth}@{\hskip 6\tabcolsep}x{.4\columnwidth}} \toprule {\textbf{Column One}} &amp; {\textbf{Column Two}} &amp; {\textbf{Column Three}} \tabularnewline \midrule  ABC &amp; \begin{itemize}[leftmargin=*] \item This is an item in column two. \item This is another item in column two. \end{itemize} &amp; \begin{itemize}[leftmargin=*] \item Here is something in column three:   \begin{itemize}   \item It   \item consists   \item of   \item many   \item different   \item lines   \end{itemize} \end{itemize} \tabularnewline  DEF &amp; \begin{itemize}[leftmargin=*] \item Additional blah blah making for a long sentence spanning multiple lines. \item Another item. \item Continuing the theme of items in column two. \end{itemize} &amp; \begin{itemize}[leftmargin=*] \item Here we also have a rather long item that needs multiple lines to fit. \item Yet another item. \item Blah, blah:   \begin{itemize}   \item It's a very long example of a sub-item in this column, here   \item Yet more   \end{itemize} \end{itemize}  \tabularnewline  GHI &amp; \begin{itemize}[leftmargin=*] \item Another long, long long long long long long long long long long long block of text. \item This particular one is medium-medium medium in lenght. \item This sentence means nothing in particular, it's blah. \end{itemize} &amp; \begin{itemize}[leftmargin=*] \item Blah \end{itemize}  \tabularnewline  JKL &amp; \begin{itemize}[leftmargin=*] \item Blah, blah, blah, blah, blah. \item Putting in fake data gets tedious. \item Reading it is probably more boring still. \end{itemize} &amp; \begin{itemize}[leftmargin=*] \item Blah \end{itemize} \tabularnewline  MNO &amp; \begin{itemize}[leftmargin=*] \item This was also a really long item so I am going to type and type and type until I run out of words. \end{itemize} &amp; \begin{itemize}[leftmargin=*] \item Blah \item Can \item we \item span \item multiple \item pages \item with \item lots \item of \item text? \item Becauase \item this \item really \item needs \item to \item be \item multipage. \end{itemize} \tabularnewline  \bottomrule \end{tabular} \end{adjustbox} \renewcommand{\arraystretch}{1} \end{hyphenrules} \end{table}  \end{document}
75829
If I have an attribute table with columns A B C D, is it possible to move the columns to different positions, say, B C A D? When making a new column with the field calculator it would be useful to put it somewhere other than last position or to be able to move key columns close to it.
59863
I'm making a reference manual using scrbook. I'd like to include a "tab" that shows the current chapter number in a 1.5cm gray rectangle on the outside edge of every page. Within the rectangle would be the current chapter number. This would allow readers to quickly locate the beginning of a particular chapter by looking at the edge of the printed book.  As an added challenge, the chapter tab needs to move down the page as the chapter number increases. For example, in chapter 1, the chapter tab would be located 1cm from the top of the page; for chapter 2, it would be located 2.5cm from the top of the page (1cm white space, plus 1.5cm for the height of the previous chapter tab), and so on.  Is this possible? If so, how can do implement it?
110869
A common need when using a database is to access records in order. For example, if I have a blog, I want to be able to reorder my blog posts in arbitrary order. These entries often have lots of relationships, so a relational database seems to make sense.  The common solution that I have seen is to add an integer column order:  CREATE TABLE AS your_table (id, title, sort_order) AS VALUES   (0, 'Lorem ipsum',   3),   (1, 'Dolor sit',     2),   (2, 'Amet, consect', 0),   (3, 'Elit fusce',    1);   Then, we can sort the rows by order to get them in the proper order.  However, this seems clumsy:   If I want to move record 0 to the start, I have to reorder every record If I want to insert a new record in the middle, I have to reorder every record after it If I want to remove a record, I have to reorder every record after it   It's easy to imagine a situations like:   Two records have the same order There are gaps in the order between records   These could happen fairly easily for a number of reasons.  This is the approach that applications like Joomla take:    You could argue that the interface here is bad, and that instead of humans directly editing numbers, they should use arrows or drag-and-drop—and you'd probably be right. But behind the scenes, the same thing is happening.  Some people have proposed using a decimal to store order, so that you can use "2.5" to insert a record in between the records at order 2 and 3. And while that helps a little, it's arguably even messier because you can end up with weird decimals (where do you stop? 2.75? 2.875? 2.8125?)  Is there a better way to store order in a table?
18362
I have a developer that would like, when doing a select statement with no order by, the rows in a table to be in the order they were inserted. The developer suggested changing from a clustered to non-clustered index.   By changing the index from clustered to non-clustered, does this make any guarantees about the order in which rows would appear in the table?  This question is mostly for my curiosity; I am going to suggest using an identity column instead, but this request got me thinking. Timestamp could be used but there is a chance rows can be inserted simultaneously.   Thanks in advance for your help.
118496
I want to sort a list of objects of a class by 2 ways. I am able to do custom sort by overwriting the compareTo method.  But I have two lists and I want to sort them differently.  Can I still accomplish this by calling the list.sort() method?  global class myClass implements Comparable{      public integer Total{get;set;}     public integer numOfDays{get;set;}      global Integer compareTo(Object compareTo) {         myClass compareToEmp = (myClass)compareTo;         if (Total == myClass.Total) return 0;         if (Total &gt; myClass.Total) return 1;         return -1;             } }   In the above example, how can I also be able to sort by "numOfDays"?  //UPDATE:  I actually wanted to sort list by single property.   But use different properties to sort different lists.  I ended up adding a new field to my class for sorting purpose.  global class myClass implements Comparable{      public integer Total{get;set;}     public integer numOfDays{get;set;}     public boolean isA {get;set;}      global Integer compareTo(Object compareTo) {         myClass compareToEmp = (myClass)compareTo;         if(isA){          if (Total == myClass.Total) return 0;         if (Total &gt; myClass.Total) return 1;             return -1; }         else{              if (Total == myClass.numOfDays) return 0;         if (Total &gt; myClass.numOfDays) return 1;             return -1;          }            } }
3950
Say I have two Chrome windows open like this:   It seems that the most recently used window always appears on top. In other words, the &quot;Apply Digital Signatures&quot; was the window I had open last. If I were to switch to the window showing the new tab, then the order in which the windows are displayed in the task bar suddenly changes. Is there a way to keep them from shuffling around? I'd like to be able to order them however I want, like tabs in a web browser. (I'd also like to put them across different workspaces.)
119286
I often implement numbered list for both print and web projects. At times it is just more efficient to break the list into two, three, or four columns.  How should item ordering be handled?  Should numbers start at 1 in the top left then move down the column, then jump to the next column to continue numbering? (Option A)  Or should numbers start at 1 in the top left the move sideways to #2, #3, etc., jumping columns for each number? (Option B)    In terms of web responsiveness, Option B provides better break points (at times with 3 or 4 columns).  Should this be handled the same in both print and web?
82059
In the  to  it was stated that the Make Query Table tool could be used to re-order fields in tables and feature classes permanently.  However, when I open the dialog for that tool I cannot see anywhere that enables re-ordering of fields.  All I can see is that fields can be carried through or dropped using checkboxes but in the same order.  Assuming that it is possible can someone describe the steps in more detail, please?