-1
データベースのテーブルから名前を取得してJMenuを作成しようとしているため、JMenuアイテムの量が可変になります。可変個数の新しいオブジェクトを割り当てる
public static JMenuBar drawMenuBar(){
ArrayList List = grabSQLTableNames();
JMenuBar menu = new JMenuBar();
JMenu contracts = new JMenu("Contracts");
//from here I am a bit stuck on how to add new JMenuItems to the Menu
}
どのようなヘルプもすばらしいでしょう。
に
List
を変更するお勧めします!ありがとうございました! –