Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java JFrame


I need assistance in Java. I really don't understand what to do. Attachments Tags Clarifications


Java JFrame - Solution


Below you'll find the solution for your assignment. It is implemented following the requirements mentioned in the doc file. Also I've provided a screenshot of the program running. If you have further questions about the implementation feel free to contact me. Attachments (1 K) Download Preview
File f; private int status; public BasicFile() { JFileChooser choose = new JFileChooser("."); status = choose.showOpenDialog(null); try { if (status != JFileChooser.APPROVE_OPTION) throw new IOException(); f = choose.getSelectedFile(); if (!f.exists()) throw new FileNotFoundException(); } catch (FileNotFoundException e) (1 K) Download Preview
JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); textArea = new JTextArea(); textArea.setText(content); JScrollPane jScrollPane = new JScrollPane(textArea); jScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); jScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); panel.add(jScrollPane, BorderLayout.CENTER); this.add(panel, BorderLayout.CENTER); } public String getName() { return (6 K) Download Preview
125); frame.add(browser, gbc); } private JMenuBar createAMenuBar() { JMenuBar menuBar = new JMenuBar(); //Create menu choices JMenu file = new JMenu("File"); JMenu tool = new JMenu("Tool"); JMenu help = new JMenu("Help"); menuBar.add(file); menuBar.add(tool); menuBar.add(help); createActions(); // Create menu items for the file menu JMenuItem newItem = new JMenuItem(newFileAction); JMenuItem listFiles

Screen Shot 2015-12-09 at 20.23.54.png (182 K) Download Preview

Purchase Answer