GUI objects resizing & repositioning | Java Functions compile

  • Follow


Hello all , 
Issue 1 :
i need to make my GUI objects Units 'Normalized' to reposition themselves when user resize the figure or different screen resolutions used , but also need to set some objects to be in fixed size , so what i need is something like normalized units in positioning and Pixels units in resizing !

Issue 2 : 
I used some java fcns in my code , and edited the static javapath , included .jar files , it works fine , but when i compile the project as a standalone .exe file it don't run , it don't even give any response , i dunno how to debug the .exe file but i tried to compile it without the java fcn lines and it worked well , so am i missing something to do ? 

Thanks a lot ,
Sherif Elnabarawy.
0
Reply Sherif 9/27/2010 1:31:08 PM

"Sherif Elnabarawy" <sherif223@hotmail.com> wrote in message <i7q6as$gs6$1@fred.mathworks.com>...
> Hello all , 
> Issue 1 :
> i need to make my GUI objects Units 'Normalized' to reposition themselves when user resize the figure or different screen resolutions used , but also need to set some objects to be in fixed size , so what i need is something like normalized units in positioning and Pixels units in resizing !
> 
> Issue 2 : 
> I used some java fcns in my code , and edited the static javapath , included .jar files , it works fine , but when i compile the project as a standalone .exe file it don't run , it don't even give any response , i dunno how to debug the .exe file but i tried to compile it without the java fcn lines and it worked well , so am i missing something to do ? 
> 
> Thanks a lot ,
> Sherif Elnabarawy.

Re Issue1 : I would recommend the GUI layout toolbox by Ben Tordoff and David Sampson: 
http://www.mathworks.com/matlabcentral/fileexchange/27758-gui-layout-toolbox

Re Issue 2: Are you adding your jar files to your mcc command with the -a switch . This will add your jar file to the classpath as it loads. Has always worked well for me.

e.g. mcc -e -C myApp.m -a c:\some_path\myJar.jar


Hope this helps
Matt W. 
0
Reply Matthew 9/27/2010 10:10:05 PM


"Matthew Whitaker" <mattlwhitaker@REMOVEgmail.com> wrote in message <i7r4nt$5cs$1@fred.mathworks.com>...
> "Sherif Elnabarawy" <sherif223@hotmail.com> wrote in message <i7q6as$gs6$1@fred.mathworks.com>...
> > Hello all , 
> > Issue 1 :
> > i need to make my GUI objects Units 'Normalized' to reposition themselves when user resize the figure or different screen resolutions used , but also need to set some objects to be in fixed size , so what i need is something like normalized units in positioning and Pixels units in resizing !
> > 
> > Issue 2 : 
> > I used some java fcns in my code , and edited the static javapath , included .jar files , it works fine , but when i compile the project as a standalone .exe file it don't run , it don't even give any response , i dunno how to debug the .exe file but i tried to compile it without the java fcn lines and it worked well , so am i missing something to do ? 
> > 
> > Thanks a lot ,
> > Sherif Elnabarawy.
> 
> Re Issue1 : I would recommend the GUI layout toolbox by Ben Tordoff and David Sampson: 
> http://www.mathworks.com/matlabcentral/fileexchange/27758-gui-layout-toolbox
> 
> Re Issue 2: Are you adding your jar files to your mcc command with the -a switch . This will add your jar file to the classpath as it loads. Has always worked well for me.
> 
> e.g. mcc -e -C myApp.m -a c:\some_path\myJar.jar
> 
> 
> Hope this helps
> Matt W. 




Thanks a lot for replying , Matt .
The GUI layout toolbox is extremely perfect solution for what i am looking for ! and i am currently working on adding their fcns to my app .

The second issue isn't solved yet ! i added the -a switch , the path of .jar files , but still nothing happen , so any ideas ?
btw the .jar files are for changing the L&F of the app in the beginning of app , and then reset it back in the exiting , does the problem relates to this idea ?

Thanks a lot,
Sherif Elnabarawy.
0
Reply sherif223 (1) 9/28/2010 1:52:04 PM

"Sherif Elnabarawy" <sherif223@hotmail.com> wrote in message <i7sru4$a2g$1@fred.mathworks.com>...
> "Matthew Whitaker" <mattlwhitaker@REMOVEgmail.com> wrote in message <i7r4nt$5cs$1@fred.mathworks.com>...
> > "Sherif Elnabarawy" <sherif223@hotmail.com> wrote in message <i7q6as$gs6$1@fred.mathworks.com>...
> > > Hello all , 
> > > Issue 1 :
> > > i need to make my GUI objects Units 'Normalized' to reposition themselves when user resize the figure or different screen resolutions used , but also need to set some objects to be in fixed size , so what i need is something like normalized units in positioning and Pixels units in resizing !
> > > 
> > > Issue 2 : 
> > > I used some java fcns in my code , and edited the static javapath , included .jar files , it works fine , but when i compile the project as a standalone .exe file it don't run , it don't even give any response , i dunno how to debug the .exe file but i tried to compile it without the java fcn lines and it worked well , so am i missing something to do ? 
> > > 
> > > Thanks a lot ,
> > > Sherif Elnabarawy.
> > 
> > Re Issue1 : I would recommend the GUI layout toolbox by Ben Tordoff and David Sampson: 
> > http://www.mathworks.com/matlabcentral/fileexchange/27758-gui-layout-toolbox
> > 
> > Re Issue 2: Are you adding your jar files to your mcc command with the -a switch . This will add your jar file to the classpath as it loads. Has always worked well for me.
> > 
> > e.g. mcc -e -C myApp.m -a c:\some_path\myJar.jar
> > 
> > 
> > Hope this helps
> > Matt W. 
> 
> 
> 
> 
> Thanks a lot for replying , Matt .
> The GUI layout toolbox is extremely perfect solution for what i am looking for ! and i am currently working on adding their fcns to my app .
> 
> The second issue isn't solved yet ! i added the -a switch , the path of .jar files , but still nothing happen , so any ideas ?
> btw the .jar files are for changing the L&F of the app in the beginning of app , and then reset it back in the exiting , does the problem relates to this idea ?
> 
> Thanks a lot,
> Sherif Elnabarawy.


Hi Sherif

About the only thing I can suggest is to look at an article Yair Altman posted on his blog. Frankly I've never had resounding success with changing the L&F. The article does not directly deal with deployed apps but may have some useful info.
http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel/

Cheers
Matt W
0
Reply mattlwhitaker1 (81) 9/28/2010 2:39:19 PM

3 Replies
416 Views

(page loaded in 0.118 seconds)

Similiar Articles:





7/22/2012 3:29:19 PM


Reply: