Processing3 앱에서 Mac 메뉴 바 사용
                                            
                                                
                                                
                                                
                                                
                                                
                                                 1489 단어  processing자바processing3
                    
Processing3에서 만든 응용 프로그램에서 사용해 봅시다.

주의
내용
메뉴 바를 만들려면 Java Swing에서 JMenuBar를 사용합니다.
sample.pdeimport java.awt.*;
import javax.swing.*;
JLayeredPane pane = new JLayeredPane();
JMenuBar  menubar = new JMenuBar();
void setup() {
  System.setProperty("apple.laf.useScreenMenuBar", "true");
  Canvas canvas = (Canvas) surface.getNative();
  pane = (JLayeredPane) canvas.getParent().getParent();
  JMenu     menu = new JMenu("menu");
  JMenuItem item = new JMenuItem("item");
  menu.add(item);
  menubar.add(menu);
  pane.add(menubar);
}
  System.setProperty("apple.laf.useScreenMenuBar", "true");이렇게 하면 Mac 메뉴 모음을 사용할 수 있습니다.
이런 느낌이 되면 성공입니다.
 
 참고
 processing3에서 AWT/swing을 사용한다.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Processing3 앱에서 Mac 메뉴 바 사용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/kame-v-d/items/306967f55aafb36e7073
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
import java.awt.*;
import javax.swing.*;
JLayeredPane pane = new JLayeredPane();
JMenuBar  menubar = new JMenuBar();
void setup() {
  System.setProperty("apple.laf.useScreenMenuBar", "true");
  Canvas canvas = (Canvas) surface.getNative();
  pane = (JLayeredPane) canvas.getParent().getParent();
  JMenu     menu = new JMenu("menu");
  JMenuItem item = new JMenuItem("item");
  menu.add(item);
  menubar.add(menu);
  pane.add(menubar);
}
processing3에서 AWT/swing을 사용한다.
Reference
이 문제에 관하여(Processing3 앱에서 Mac 메뉴 바 사용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/kame-v-d/items/306967f55aafb36e7073텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)