相关推荐:java - Spring Security for single user

ation in which a specific url '/newPost' should only be accessible to one user, the admin. When trying to navigate to '/newPost', the user should be redirected to a login page where he must verify his identity as admin.

up vote 1 down vote favorite 1

I have a uitable with 6 row and 6 column and i want to show it in full screen mode for doing this i can change column width but i can't change row height.
Extent is Size of uitable rectangle, but it is read only properties.

matlab matlab-uitable share edited Dec 14 '13 at 20:45 thewaywewalk 20.8k 6 37 82 asked Dec 14 '13 at 0:09 maia 82 1 2 14 2   do you want to increase the font size as well? –  thewaywewalk Dec 14 '13 at 1:04      yes thank you. That Would Be Great. –  maia Dec 14 '13 at 13:55 add a comment  | 

2 Answers 2

active oldest votes up vote 1 down vote accepted

With conventional approaches the only possibility to change the row height is by adjusting the 'FontSize' property.

The following function will give you a full-screen table. You can set up 'ColumnWidth' and 'FontSize' until it fills your screen entirely.

function fancyTable 

columnwidth = { 1920/2 1920/2 };
FontSize = 135;

h = figure('units','normalized','Position',[0 0 1 1],...
           'numbertitle','off','MenuBar','none');
defaultData = rand(5,2);
uitable(h,'Units','normalized','Position',[0 0 1 1],...
              'Data', defaultData,... 
              'ColumnName', [],'RowName',[],...
              'ColumnWidth', columnwidth,...
              'FontSize', FontSize,...
              'ColumnEditable', [false false],...
              'ColumnFormat', {'numeric' , 'numeric'});
end

I don't see a simple solution to change the row-height independently from the font size.

But there are some ideas at undocumented Matlab.

" 7. JIDE customizations ... Similarly, this section explains how we can use JIDE to merge together adjacent cells: "

Could be a fiddly workaround, and there are no code-examples.

share answered Dec 14 '13 at 15:17 thewaywewalk 20.8k 6 37 82 add a comment  | 

Did you find this question interesting? Try our newsletter

Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

Subscribed! Success! Please click the link in the confirmation email to activate your subscription. up vote 0 down vote

You can e.g. use the findjobj utility from the file exchange. It will get you to the underlying java object of the table, somewhere along the lines of:

t = uitable(...);
scrollPane = findjobj(t);
% not 100% sure about this, but there'll be a `UITablePeer` object somewhere within that scrollPane
jTable = scrollPane.getComponent(0); 

This jTable will have a setRowHeight method inherited from http://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html

share answered Dec 14 '13 at 15:39 sebastian 6,580 7 25 add a comment  | 

Your Answer

  draft saved draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name Email

Post as a guest

Name Email discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged matlab matlab-uitable or ask your own question.

相关推荐:spring security - AlreadyBuiltException when setting variable using @Value

dap server information in following configuration class.//WebSecurityConfig.java@Configuration@EnableWebSecuritypublic class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void

快照源:http://my.oschina.net/u/1177710/blog/299707