100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Ontwerpen en programmeren, Absolute Java R165,96   Add to cart

Case

Ontwerpen en programmeren, Absolute Java

 9 views  0 purchase
  • Course
  • Institution
  • Book

Dit verslag beschrijft de ontwikkeling van een kleine JAVA applicatie, in dit geval voor de aanvraag van materialen bij een magazijnbeheerder. De code is toegevoegd evenals het UML-ontwerp. Ook zijn er testresultaten in verwerkt.

Last document update: 3 months ago

Preview 3 out of 12  pages

  • August 16, 2024
  • August 19, 2024
  • 12
  • 2023/2024
  • Case
  • Rory whittle
  • 8-9
avatar-seller
package com.mycompany.radioaanvraag;



import javax.swing.*;

import java.awt.*;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.awt.print.PrinterException;

import java.text.SimpleDateFormat;

import java.util.Date;



public class RadioAanvraag extends JFrame implements ActionListener

{

private final JTextField naamField;

private final JTextField rangField;

private final JTextField eenheidField;

private final JTextArea itemsArea;

private final JSpinner datumSpinner;

private JFrame inputFrame;



public RadioAanvraag()

{

JLabel naamLabel = new JLabel("Naam:");

JLabel rangLabel = new JLabel("Rang:");

JLabel eenheidLabel = new JLabel("Eenheid:");

JLabel datumLabel = new JLabel("Uitleen datum:");

JLabel itemsLabel = new JLabel("Items:");

SpinnerDateModel model = new SpinnerDateModel();



naamField = new JTextField(10);

rangField = new JTextField(10);

eenheidField = new JTextField(10);

,datumSpinner = new JSpinner(model);

itemsArea = new JTextArea(10, 10);



JButton toonGegevensButton = new JButton("Akkoord");

toonGegevensButton.setBackground(Color.green);

toonGegevensButton.addActionListener(this);



JPanel inputPanel = new JPanel(new GridLayout(8, 1));

JSpinner.DateEditor editor = new JSpinner.DateEditor(datumSpinner, "dd-MM-yyyy");

datumSpinner.setEditor(editor);



inputPanel.add(naamLabel);

inputPanel.add(naamField);

inputPanel.add(rangLabel);

inputPanel.add(rangField);

inputPanel.add(eenheidLabel);

inputPanel.add(eenheidField);

inputPanel.add(datumLabel);

inputPanel.add(datumSpinner);



JLabel bericht1Label = new JLabel("Houd rekening met het aantal radio's.");

bericht1Label.setForeground(Color.RED);

JLabel bericht2Label = new JLabel("");

JLabel bericht3Label = new JLabel("Maximaal 10x VHF.");

bericht3Label.setForeground(Color.RED);

JLabel bericht4Label = new JLabel("");

JLabel bericht5Label = new JLabel("Maximaal 4x HF");

bericht5Label.setForeground(Color.RED);



inputPanel.add(bericht1Label);

inputPanel.add(bericht2Label);

, inputPanel.add(bericht3Label);

inputPanel.add(bericht4Label);

inputPanel.add(bericht5Label);



JPanel itemsPanel = new JPanel(new BorderLayout());

itemsPanel.add(itemsLabel, BorderLayout.NORTH);

itemsPanel.add(new JScrollPane(itemsArea), BorderLayout.CENTER);



JPanel buttonPanel = new JPanel();

buttonPanel.add(toonGegevensButton);



JPanel panel = new JPanel(new BorderLayout());

panel.add(inputPanel, BorderLayout.NORTH);

panel.add(inputPanel, BorderLayout.NORTH);

panel.add(itemsPanel, BorderLayout.CENTER);

panel.add(buttonPanel, BorderLayout.SOUTH);



add(panel);



setTitle("Aanvraag formulier");

setSize(600, 600);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setVisible(true);



}



@Override

public void actionPerformed(ActionEvent e) {

if (e.getActionCommand().equals("Akkoord")) {

String naam = naamField.getText();

String rang = rangField.getText();

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller oliolaf. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R165,96. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73216 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R165,96
  • (0)
  Buy now