亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winfun.m

?? matlab7.0這本書的源代碼
?? M
字號:
function winfun(varargin)% MATLAB Java Demo function winfun.m%%  Mastering MATLAB 7 Java Example 5%    Create a window with buttons, menus and text objects using%    Java windowing toolkit objects within a function. Use a %    local function to implement callbacks. Use persistent variables%    to maintain visibility of the Java objects between calls.%% Import the entire Java Abstract Window Toolkit.import java.awt.*% Make sure we can find the Java objects when servicing callbacks.persistent win ta mi abt mq ma txt x y h wif isempty(win)  % Initial function call: create the necessary objects.  % Start with some text for the About Box.  txt=[' Cool Window version 1.4  ';...       ' MM7 example function by  ';...       'Mastering MATLAB authors  ';...       'Hanselman and Littlefield '];  % Reshape it for use in the textarea as well.  tstr=reshape(txt',1,prod(size(txt)));    % Create a window using the flow layout model (the simplest)  %    and set the title. Set the layout using Java syntax.  win=Frame('Cool Java Window');  win.setLayout(FlowLayout);  % Specify the window location, size and color. Use Java syntax  %    for the location and size, and use MATLAB syntax to set  %    the background color.  x=150; y=150; w=430; h=160;  win.setLocation(x,y);  win.setSize(w,h);  set(win,'Background',[.8 .8 .8]);    % Create some menus: a 'File' menu and a 'Help' menu.  mf=Menu('File');  mh=Menu('Help');    % Create a 'Quit' menu item, define a callback to close the window,  %     and attach it to the File menu.  mq=MenuItem('Quit');  set(mq,'ActionPerformedCallback','winfun(''quit'')');  mf.add(mq);  % Create a 4x21 text area with no scroll bars (3).  ta=TextArea(tstr,4,21,3);    % Don't let the user change the text.  ta.setEditable(0);    % Set the text background color.  set(ta,'Background',[1 1 .9]);    % Create a 'Show Info' menu item and attach it to the Help menu.  %    Show or hide the textarea when the menu item is selected.  mi=MenuItem('Show Info');  set(mi,'ActionPerformedCallback','winfun(''info'')');  mh.add(mi);    % Create an 'About' menu item and attach it to the Help menu.  ma=MenuItem('About');  set(ma,'ActionPerformedCallback','winfun(''about'')');  mh.add(ma);  % Create a menubar object, add the menus, and attach   %   the menubar to the window.  mb=MenuBar;  mb.add(mf); mb.add(mh);  mb.setHelpMenu(mh);      % Move the Help menu to the right side.  win.setMenuBar(mb);    % Create some buttons.  bs=Button('Shrink');  be=Button('Expand');  bl=Button('Left');  bu=Button(' Up ');  bd=Button('Down');  br=Button('Right');  bq=Button('Quit');    % Define callbacks for the buttons.  set(bs,'MouseClickedCallback','winfun(''shrink'')')  set(be,'MouseClickedCallback','winfun(''expand'')')  set(bl,'MouseClickedCallback','winfun(''left'')');  set(bu,'MouseClickedCallback','winfun(''up'')');  set(bd,'MouseClickedCallback','winfun(''down'')');  set(br,'MouseClickedCallback','winfun(''right'')');  set(bq,'MouseClickedCallback','winfun(''quit'')');    % Specify some colors for the buttons.  set(bs,'Background',[.5,1,1]);  set(be,'Background',[.5,1,1]);  set(bq,'Background',[1,.4,.4]);  set(bl,'Background',[.9,.9,.9]);  set(bu,'Background',[.7,.7,.7]);  set(bd,'Background',[.7,.7,.7]);  set(br,'Background',[.9,.9,.9]);    % Add the first row of buttons to the window. Objects will be  %    positioned in the order in which they are added.  win.add(bs);  win.add(bl);  win.add(bu);  win.add(bd);  win.add(br);  win.add(be);    % Attach the text area to the window, but don't display it yet.  win.add(ta);  ta.setVisible(0);    % Now add the Quit button.  win.add(bq);  % Now that the main window has been created, it is time  %    to create a dialog box for the 'About' menu item.  abt = Dialog(win, 'About Winfun');  set(abt,'Background',[.95 .95 .95]);  abt.setLayout(GridLayout(5,1));    % Add some lines of text  abt.add(Label(txt(1,:)));  abt.add(Label(txt(2,:)));  abt.add(Label(txt(3,:)));  abt.add(Label(txt(4,:)));  % and a button bar to close the About box.  bok = Button('OK');  set(bok,'ActionPerformedCallback','winfun(''ok'')');  set(bok,'Background',[.6 .8 .8]);  abt.add(bok);  % Set the size of the dialog box but don't make it visible.  abt.setSize(180,110);  % All done. Now show the main window and exit.  win.setVisible(1);elseif nargin == 0   % Reset the hidden window to the initial state and show it.  abt.setVisible(0);  ta.setVisible(0); mi.setLabel('Show Info');  x=150; y=150; w=430; h=160;  win.setLocation(x,y);  win.setSize(w,h);  win.setVisible(1);elseif nargin == 1   % This is a callback.   switch (varargin{1})     case 'shrink'   % Shrink width by 4 pixels, height by 2       w=w-4; h=h-2;     case 'expand'   % Expand width by 4 pixels, height by 2       w=w+4; h=h+2;     case 'left'     % Move 4 pixels to the left       x=x-4;     case 'up'       % Move 2 pixels higher       y=y-2;     case 'down'     % Move 2 pixels lower       y=y+2;     case 'right'    % Move 4 pixels to the right       x=x+4;     case 'info'     % Toggle visibility of the text area       if (ta.isVisible)         ta.setVisible(0); mi.setLabel('Show Info');       else          ta.setVisible(1); mi.setLabel('Hide Info');       end      case 'about'    % Show the About Box to the right and lower       abt.setLocation(x+w+20,y+10);       abt.setVisible(1);     case 'ok'       % Hide the About Box       abt.setVisible(0);     case 'quit'     % Hide the windows       abt.setVisible(0);       win.setVisible(0);       return     otherwise       % Bad argument       error('Invalid callback');   end   win.setBounds(x,y,w,h); win.setVisible(1); else                  % Should not get here.    error('Too many arguments.');end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品免费**视频| 亚洲va欧美va人人爽午夜| 欧美日韩国产高清一区二区三区 | 欧美色精品天天在线观看视频| 国产一区二区精品在线观看| 亚洲人一二三区| 中文幕一区二区三区久久蜜桃| 日韩欧美中文字幕精品| 欧美男同性恋视频网站| 色综合久久六月婷婷中文字幕| 激情五月婷婷综合| 人人狠狠综合久久亚洲| 亚洲午夜激情网页| 亚洲综合激情另类小说区| 91精品国产麻豆国产自产在线| 在线免费观看成人短视频| 99久久国产综合精品麻豆| 国产原创一区二区| 国产二区国产一区在线观看| 人人超碰91尤物精品国产| 亚洲成av人片在线观看| 亚洲女子a中天字幕| 亚洲激情图片小说视频| 婷婷丁香久久五月婷婷| 亚洲乱码国产乱码精品精可以看| 亚洲美女免费在线| 亚洲mv在线观看| 麻豆精品一区二区综合av| 国产伦精一区二区三区| 不卡一区二区在线| 色综合久久88色综合天天| 91精品一区二区三区在线观看| 欧美一区二区三区视频免费播放| 日韩一区二区三区av| 国产人成亚洲第一网站在线播放| 国产精品欧美一区喷水| 亚洲一区在线免费观看| 麻豆精品新av中文字幕| av电影一区二区| 91精品综合久久久久久| 国产欧美一区二区三区鸳鸯浴 | 亚洲欧美日本韩国| 国产在线精品不卡| 色婷婷久久久综合中文字幕| 日韩欧美在线1卡| 国产精品素人一区二区| 日韩精品高清不卡| www.亚洲人| 亚洲欧洲三级电影| 久久99精品视频| 欧美美女喷水视频| 国产精品家庭影院| 国产精品综合一区二区三区| 欧美高清视频一二三区| 一级女性全黄久久生活片免费| 国产一区在线观看麻豆| 3d成人h动漫网站入口| 亚洲欧美偷拍三级| 成人免费av网站| 国产亚洲成年网址在线观看| 日本少妇一区二区| 欧美片网站yy| 亚洲va欧美va人人爽| 欧美三级午夜理伦三级中视频| 国产精品短视频| 福利一区二区在线观看| 欧美一区二区三区色| 亚洲卡通欧美制服中文| 95精品视频在线| 亚洲久本草在线中文字幕| av电影一区二区| 一区二区在线看| 91麻豆精品国产自产在线观看一区| 亚洲国产一区二区a毛片| 色欧美日韩亚洲| 午夜精品福利一区二区三区蜜桃| 欧美一区二区三区系列电影| 亚洲成人动漫av| 欧美精品一区二区蜜臀亚洲| 国产一区二区在线影院| 国产精品美女久久久久久 | 欧美揉bbbbb揉bbbbb| 亚洲午夜久久久久久久久电影院| 91精品久久久久久久久99蜜臂 | 日韩国产欧美在线观看| 精品国产a毛片| 成人午夜激情影院| 亚洲精品乱码久久久久| 制服丝袜日韩国产| 国产高清在线观看免费不卡| 国产精品国产a| 精品国产乱码久久久久久牛牛| 国产电影一区在线| 亚洲国产成人av好男人在线观看| 日韩你懂的在线播放| 91麻豆蜜桃一区二区三区| 不卡影院免费观看| 亚洲天天做日日做天天谢日日欢| 精品国产污网站| 精品国产一区a| 91在线免费看| 日本午夜一区二区| 亚洲女人的天堂| 久久色视频免费观看| 国产伦精品一区二区三区在线观看 | 色中色一区二区| 亚洲色图在线播放| 欧美亚洲综合一区| 欧美色电影在线| 在线视频中文字幕一区二区| 91免费版在线| 色综合亚洲欧洲| 不卡视频在线观看| av在线不卡网| 成人精品视频一区| 99这里都是精品| 7777女厕盗摄久久久| 欧美日韩和欧美的一区二区| 欧美日韩一区二区不卡| 精品国产人成亚洲区| www.一区二区| 欧美午夜不卡在线观看免费| 欧美一区二区视频观看视频| 久久久精品tv| 亚洲.国产.中文慕字在线| 另类小说图片综合网| 国产一区二区视频在线播放| 韩国成人精品a∨在线观看| 懂色av一区二区三区免费看| 成人av第一页| 欧美亚洲综合久久| 欧美电影免费观看高清完整版 | 黑人巨大精品欧美一区| 精品一区二区久久久| 99久久综合色| 欧美日本高清视频在线观看| 欧美第一区第二区| 综合久久综合久久| 日韩不卡免费视频| 岛国一区二区在线观看| 欧美羞羞免费网站| 欧美videos大乳护士334| 亚洲精品自拍动漫在线| 日韩成人免费在线| 99精品桃花视频在线观看| 欧美福利视频一区| 中文字幕一区av| 精品一区二区三区免费| 欧美性受xxxx黑人xyx性爽| 久久一区二区视频| 日韩精品一二三四| 色吊一区二区三区| 国产精品久久久99| 国产盗摄精品一区二区三区在线| 欧美肥妇bbw| 亚洲影视在线观看| 不卡一区二区在线| 国产日产亚洲精品系列| 久久99精品视频| 欧美大片国产精品| 青青草原综合久久大伊人精品 | 国产日韩欧美一区二区三区乱码 | 丁香亚洲综合激情啪啪综合| 日韩欧美国产麻豆| 免费成人结看片| 欧美一区二区三区视频免费| 午夜精品久久久久影视| 欧美视频三区在线播放| 亚洲欧美激情小说另类| 91色在线porny| 亚洲精品国产高清久久伦理二区| 成年人午夜久久久| 国产精品久久久久7777按摩 | 午夜精品久久一牛影视| 欧美日韩国产经典色站一区二区三区 | aaa亚洲精品| 一区二区三区加勒比av| 欧美日韩高清一区二区三区| 美女国产一区二区三区| 久久精品欧美一区二区三区不卡 | 亚洲第一久久影院| 欧美电影一区二区三区| 成人动漫中文字幕| 另类小说视频一区二区| 国产精品第一页第二页第三页| 欧美天天综合网| 东方欧美亚洲色图在线| 偷偷要91色婷婷| 国产蜜臀av在线一区二区三区| 99久久精品免费看| 亚洲国产精品久久人人爱| www日韩大片| 欧美日韩免费观看一区三区| 国产成人在线看| 日韩和欧美一区二区三区| 亚洲一区二区三区国产| 国产精品盗摄一区二区三区| 欧美电影一区二区三区| 91蜜桃视频在线| 成人综合婷婷国产精品久久免费|