Position:Home > spring security 应用实例

spring security 应用实例

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: "

Recommend:java - AuthenticationSuccessHandler Spring Security

users one ADMIN , one a simple user i get the data from a Datasource then i execute a Query , my problem is with redirection i have for every user a diffrent homepage i'm tring to use to AthenticationSuccessHandler but

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.

Recommend:Grails Spring Security - security = "none"

equivalent to <http pattern="/css/**" security="none"/> in the XML configuration I'm attempting to redirect to a failed authentication page (inside a custom filter), but it causes a redirect loop, as the page I am atte

Recommend:java - spring security customisation

ssible through the Principal object. Also to log in I want to user the email and not username. Where do I start or is this already possible java spring spring-mvc spring-security share | improve this question edited Sep

Your Answer
(Ctrl+Enter To Post)   
    Copyright © 2015-2017 163JAVA.COM All Rights Reserved.