Speed dating aktiviteter

Gold u 11 speed dating. Dela Dela av Maggss. Gilla. Redigera innehåll. Bädda in. Mer. Tema. Växla mall Interaktiva Visa alla. PDF ... Slumpmässigt hjul är en öppen mall. Det genererar inte noter för en poänglista. Liknande aktiviteter från Community. Växla mall Interaktiva Visa alla. PDF Kalkylblad. Visa alla. Flera format visas när ... Speedmingel är en favoritövning! Men ibland finns det inte plats eller är inte lämpligt av någon annan orsak med ett stående mingel. Ett alternativ då är att göra ett sittande mingel, av typen speeddating. En bra sak med denna variant är också att du som ledare ser till att alla faktiskt får prata med alla. Vid stående Find en af kommunens andre hjemmesider. Flere af Ikast-Brande Kommunes institutioner og afdelinger har egen hjemmeside. Du kan finde dem her ved først at vælge emne og derefter vælge den hjemmeside, du vil gå til. – Vi møttes på Næringsforeningens speed-dating i Dyreparken i fjor, og først så jeg ikke helt hvordan vi skulle kunne dra nytte av hverandre. Etter hvert som praten gikk fant vi ut at vi i Bedriftsidretten jo faktisk trenger kart til en del av våre aktiviteter, samtidig som at Norkart var relativt nye i byen og ønsket å bli mer ... internett dating profiel voorbeeld. dating en kvinne bartender råd. førsteinntrykket speed dating vurderinger online 3d dating simulering sikkerhets-iden for oppkobling gravid etter seks uker med dating kundali matche programvare på hindi konjunkturene dating uk dating bare etter pause opp hekte brain gym dating warrenton va dinosaurbein dating Kodar upp planer i Seattle? Oavsett om du är en lokal, ny i stan, eller bara passerar genom, kommer du vara säker på att hitta något på Eventbrite som väcker ditt intresse. Du er her: Forside Aktiviteter Peer feedback: Speeddating Kort beskrivelse Aktiviteten indebærer at de studerende på baggrund af en konkret opgave diskuterer deres problemformuleringer i kortfattede en-til-en dialoger. Rabatter och kommande event till din mail! Anmäl dig här 1000-tals har redan testat! Här är vad några sagt om eventen: Katarina Tack för en jätterolig kväll! Jag hade inga förväntningar på eventet men Speed dating i KRLE-timen Slik utførte Marielle Haarvik speed dating i klasserommet: Elevene hadde i lekse å forberede seg om ett av tre trossamfunn. I timen fikk elevene beskjed om å sette seg ved en pult, vis-a-vis en medelev som hadde et annet trossamfunn. Elevene fikk 1,5 minutt hver til å fortelle alt de kunne om sitt emne. Aktiviteter; Inspiration Speed Dating. Af Maja Hansen. Get a role card from your teacher and walk around in class and speed date. ... When speed dating, you only have time to share a little bit about yourself, so it is important to talk about your interests, your looks, your age, and your job.

Splitting up GUI into different classes

2019.11.05 20:01 gxldenhalos Splitting up GUI into different classes

I'm working with a GUI where I've pretty much thrown every type of view into one massive clog of code. The class consists of panels, actionlisteners, methods to set the texts inside the panels and so on. Now, I've tried splitting the different methods away from each other, but right now I just feel clueless as to how/what I should split up. Should I have different classes for the views, and one main class how calls on all the views, or how should I structure it? This is how my GUI looks atm:
package view; import dao.UserDAO; import db.DemoDB; import model.Activity; import model.DataPoint; import model.Statistics; public class LoginGUI extends JFrame { DemoDB DemoDBSingleton = null; JScrollPane scrollpane; private JTabbedPane tabbedPane = new JTabbedPane(); UserDAO userDao = new UserDAO(); JFrame mainFrame = new JFrame("Välkommen till din app"); JFrame f = new JFrame("User Login"); JLabel l = new JLabel("Användarnamn:"); JLabel l1 = new JLabel("Lösenord:"); JTextField textfieldUsername = new JTextField(10); JPasswordField textfieldPassword = new JPasswordField(10); JButton loginButton = new JButton("Logga In"); JFileChooser fc = new JFileChooser(); JMenuBar mb = new JMenuBar(); JFrame jf; JMenu menu; JMenuItem importMenu, exitMenu; private JTextArea tdp = new JTextArea(); private JTextArea stp = new JTextArea(); private JTextArea stp1 = new JTextArea(); private JTextArea stp2 = new JTextArea(); private JTextArea stp3 = new JTextArea(); private JTextArea stp4 = new JTextArea(); private JTextArea titleText = new JTextArea(); private JTextArea locationText = new JTextArea(); private JTextArea dateText = new JTextArea(); private JTextArea noteText = new JTextArea(); private JTextArea activityText = new JTextArea(); private JTextArea categoryText = new JTextArea(); private JTextField titleField = new JTextField(); private JTextField locationField = new JTextField(); private JTextField dateField = new JTextField(); private JTextField noteField = new JTextField(); private JTextField activityField = new JTextField(); private JTextField categoryField = new JTextField(); Object[] fields = { "Rubrik", titleField, "Plats", locationField, "Datum", dateField, "Anteckning", noteField, "Aktivitet", activityField, "Kategori", categoryField, }; JList listAct = new JList(); List activityList = new ArrayList(); // MyController controller = new MyController(); Activity activity = new Activity(); List listOfDataPoints = activity.getData(); Statistics stats = new Statistics(listOfDataPoints); StatisticsViewPanel statisticsViewPanel = new StatisticsViewPanel(); public LoginGUI() throws IOException { loginButton.addActionListener(n -> { try { ListenerLogIn(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }); DemoDBSingleton = DemoDB.getInstance(); programmainframe(); } private void logInframe() { f.setSize(800, 600); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); JPanel p = new JPanel(); p.setBackground(new Color(224, 255, 255)); p.setLayout(null); l.setFont(new Font("Tahoma", Font.PLAIN, 21)); l.setBounds(102, 173, 169, 41); p.add(l); textfieldUsername.setHorizontalAlignment(SwingConstants.CENTER); textfieldUsername.setFont(new Font("Tahoma", Font.PLAIN, 16)); textfieldUsername.setBounds(303, 177, 169, 41); p.add(textfieldUsername); l1.setFont(new Font("Tahoma", Font.PLAIN, 21)); l1.setBounds(102, 290, 93, 26); p.add(l1); textfieldPassword.setHorizontalAlignment(SwingConstants.CENTER); textfieldPassword.setFont(new Font("Tahoma", Font.PLAIN, 16)); textfieldPassword.setBounds(303, 287, 169, 41); p.add(textfieldPassword); loginButton.setBounds(334, 375, 110, 52); p.add(loginButton); f.getContentPane().add(p); JCheckBox hidepasswordBox = new JCheckBox("Visa Lösenord"); hidepasswordBox.setBackground(new Color(224, 255, 255)); hidepasswordBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { if (hidepasswordBox.isSelected()) { textfieldPassword.setEchoChar((char) 0); } else { textfieldPassword.setEchoChar('*'); } } }); hidepasswordBox.setBounds(303, 335, 110, 23); p.add(hidepasswordBox); } public JFrame programmainframe() throws IOException { mainFrame.setSize(800, 600); mainFrame.setVisible(true); mainFrame.setJMenuBar(mb); mainFrame.getContentPane().setLayout(new BorderLayout()); mainFrame.setMinimumSize(new Dimension(800, 600)); tabbedPane.add("Dina Aktiviteter", createViewActPanel()); tabbedPane.add("Diagram för vald aktivitet", createViewDiagramPanel()); tabbedPane.add("Statistik för vald aktivitet", createViewStatisticsPanel()); tabbedPane.add("Kartbild över vald aktivitet", createViewMapPanel()); mainFrame.getContentPane().add(tabbedPane, BorderLayout.CENTER); JMenuBar mb = new JMenuBar(); menu = new JMenu("Meny"); importMenu = new JMenuItem("Importera aktivitet"); importMenu.addActionListener(importActionListener); exitMenu = new JMenuItem("Avsluta program"); exitMenu.addActionListener(exitActionListener); menu.add(importMenu); menu.add(exitMenu); mb.add(menu); mainFrame.setJMenuBar(mb); return mainFrame; } private JPanel createViewActPanel() { JPanel analogM = new JPanel(); scrollpane = new JScrollPane(listAct); scrollpane.setBounds(0, 1, 400, 511); scrollpane.setPreferredSize(new Dimension(400, 200)); listAct.addListSelectionListener(e -> selectActivity(e)); analogM.setLayout(null); analogM.add(scrollpane); JPanel actPanel = new JPanel(new GridLayout(6, 1)); actPanel.setBackground(Color.LIGHT_GRAY); actPanel.setBounds(400, 1, 379, 511); analogM.add(actPanel); JPanel titlePanel = new JPanel(); titlePanel.setBorder(BorderFactory.createTitledBorder("Rubrik: ")); titlePanel.setBackground(new Color(224, 255, 255)); titlePanel.setLayout(null); titleText.setBounds(10, 21, 359, 53); titleText.setBackground(new Color(224, 255, 255)); titlePanel.add(titleText); actPanel.add(titlePanel); JPanel locationPanel = new JPanel(); locationPanel.setBorder(BorderFactory.createTitledBorder("Plats: ")); locationPanel.setBackground(new Color(224, 255, 255)); locationPanel.setLayout(null); locationText.setBounds(10, 21, 359, 53); locationText.setBackground(new Color(224, 255, 255)); locationPanel.add(locationText); actPanel.add(locationPanel); JPanel datePanel = new JPanel(); datePanel.setBorder(BorderFactory.createTitledBorder("Datum: ")); datePanel.setBackground(new Color(224, 255, 255)); datePanel.setLayout(null); dateText.setBounds(10, 21, 359, 53); dateText.setBackground(new Color(224, 255, 255)); datePanel.add(dateText); actPanel.add(datePanel); JPanel notePanel = new JPanel(); notePanel.setBorder(BorderFactory.createTitledBorder("Anteckning: ")); notePanel.setBackground(new Color(224, 255, 255)); notePanel.setLayout(null); noteText.setBounds(10, 21, 359, 53); noteText.setBackground(new Color(224, 255, 255)); notePanel.add(noteText); actPanel.add(notePanel); JPanel activityPanel = new JPanel(); activityPanel.setBorder(BorderFactory.createTitledBorder("Aktivitet: ")); activityPanel.setBackground(new Color(224, 255, 255)); activityPanel.setLayout(null); activityText.setBounds(10, 21, 359, 53); activityText.setBackground(new Color(224, 255, 255)); activityPanel.add(activityText); actPanel.add(activityPanel); JPanel categoryPanel = new JPanel(); categoryPanel.setBorder(BorderFactory.createTitledBorder("Kategori")); categoryPanel.setBackground(new Color(224, 255, 255)); categoryPanel.setLayout(null); categoryText.setBounds(10, 21, 359, 53); categoryText.setBackground(new Color(224, 255, 255)); categoryPanel.add(categoryText); actPanel.add(categoryPanel); return analogM; } private JPanel createViewDiagramPanel() { JPanel panel = new JPanel(new GridLayout(4, 1)); if (activity.getData().size() > 0) { panel.add(new PlotView("HR", activity, tp -> tp.getHeartRate())); panel.add(new PlotView("Altitude", activity, tp -> tp.getAltitude())); panel.add(new PlotView("Speed", activity, tp -> tp.getSpeed())); panel.add(new PlotView("Cadence", activity, tp -> tp.getCadence())); panel.setVisible(true); } return panel; } private JPanel createViewStatisticsPanel() { JPanel statPanel = new JPanel(new GridLayout(2, 3)); statPanel.setPreferredSize(new Dimension(1000, 500)); // statPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2)); JPanel timePanel = new JPanel(); timePanel.setBorder(BorderFactory.createTitledBorder("Tid/Distans")); timePanel.setBackground(new Color(224, 255, 255)); tdp.setBackground(new Color(224, 255, 255)); timePanel.add(tdp); statPanel.add(timePanel); JPanel startTimepanel = new JPanel(); startTimepanel.setBorder(BorderFactory.createTitledBorder("Altitud")); startTimepanel.setBackground(new Color(224, 255, 255)); stp.setBackground(new Color(224, 255, 255)); startTimepanel.add(stp); statPanel.add(startTimepanel); JPanel startTimepanel1 = new JPanel(); startTimepanel1.setBorder(BorderFactory.createTitledBorder("Hastighet")); startTimepanel1.setBackground(new Color(224, 255, 255)); stp1.setBackground(new Color(224, 255, 255)); startTimepanel1.add(stp1); statPanel.add(startTimepanel1); JPanel startTimepanel2 = new JPanel(); startTimepanel2.setBorder(BorderFactory.createTitledBorder("Puls")); startTimepanel2.setBackground(new Color(224, 255, 255)); stp2.setBackground(new Color(224, 255, 255)); startTimepanel2.add(stp2); statPanel.add(startTimepanel2); JPanel startTimepanel3 = new JPanel(); startTimepanel3.setBorder(BorderFactory.createTitledBorder("Kadens")); startTimepanel3.setBackground(new Color(224, 255, 255)); stp3.setBackground(new Color(224, 255, 255)); startTimepanel3.add(stp3); statPanel.add(startTimepanel3); JPanel startTimepanel4 = new JPanel(); startTimepanel4.setBorder(BorderFactory.createTitledBorder("Lutning")); startTimepanel4.setBackground(new Color(224, 255, 255)); stp4.setBackground(new Color(224, 255, 255)); startTimepanel4.add(stp4); statPanel.add(startTimepanel4); return statPanel; } private JPanel createViewMapPanel() { JPanel mapPane = new JPanel(new BorderLayout()); if (listOfDataPoints.size() > 0) { mapPane.add(new PlotMap(listOfDataPoints)); } mapPane.setBackground(new Color(224, 255, 255)); mapPane.setVisible(true); return mapPane; } private void selectActivity(ListSelectionEvent e) // Lyssnarmetod { Activity selectedActivity = listAct.getSelectedValue(); if (selectedActivity != null) { stats = new Statistics(activity.getData()); updateStatistics(stats); tabbedPane.setComponentAt(0, createViewActPanel()); tabbedPane.setComponentAt(1, createViewDiagramPanel()); tabbedPane.setComponentAt(2, createViewStatisticsPanel()); tabbedPane.setComponentAt(3, createViewMapPanel()); } } public void updateStatistics(Statistics stats) { stats.calculateStatistics(); tdp.setText("\n Starttid: " + stats.getStartTime() + "\n Slutlig tid: " + stats.getEndTime() + "\n Total tid: " + stats.getTotalTime() + "\n Total distans" + stats.getTotalDistance()); stp.setText("\n Lägsta altitud: " + stats.getMinAltitude() + "\n Högsta altitud : " + stats.getMaxAltitude() + "\n Genomsnittlig altitud: " + stats.getAvgAltitude()); stp1.setText("\n Lägsta hastighet: " + stats.getMinSpeed() + "\n Högsta hastighet : " + stats.getMaxSpeed() + "\n Genomsnittlig hastighet: " + stats.getAvgSpeed()); stp2.setText("\n Lägsta puls: " + stats.getMinHeartrate() + "\n Högsta puls : " + stats.getMaxHeartrate() + "\n Genomsnittlig puls: " + stats.getAvgHeartrate()); stp3.setText("\n Lägsta kadens: " + stats.getMinCandence() + "\n Högsta kadens : " + stats.getMaxCandence() + "\n Genomsnittlig kadens: " + stats.getAvgCandence()); stp4.setText("\n Lägsta lutning: " + stats.getMinTilt() + "\n Högsta lutning : " + stats.getMaxTilt() + "\n Genomsnittlig lutning: " + stats.getAvgTilt()); } ActionListener importActionListener = new ActionListener() { @Override public void actionPerformed(ActionEvent e) { int returnValue = fc.showOpenDialog(mainFrame); if (returnValue == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); if (file != null) { activity.clear(); activity = new Activity(); String fileName = file.getAbsolutePath(); activity.csvFileReader(fileName); listOfDataPoints = activity.getData(); stats = new Statistics(listOfDataPoints); activityList.add(activity); listAct.setListData(new Vector(activityList)); int option = JOptionPane.showConfirmDialog(null, fields, "Skriv in aktivitetsdata: ", JOptionPane.OK_CANCEL_OPTION); if (option == JOptionPane.OK_OPTION) { String title = titleField.getText(); String location = locationField.getText(); String date = dateField.getText(); String note = noteField.getText(); String activity = activityField.getText(); String category = categoryField.getText(); titleText.setText(title); locationText.setText(location); dateText.setText(date); noteText.setText(note); activityText.setText(activity); categoryText.setText(category); } } } } }; ActionListener exitActionListener = new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.exit(0); } }; private void ListenerLogIn() throws IOException { if (userDao.login(textfieldUsername.getText(), textfieldPassword.getText())) { JOptionPane.showMessageDialog(null, "Välkommen " + textfieldUsername.getText() + "!"); programmainframe(); f.setVisible(false); } else JOptionPane.showMessageDialog(null, "Felaktigt användarnamn eller lösenord!!!"); } public static void main(String[] args) throws IOException { new LoginGUI(); } } 
submitted by gxldenhalos to learnprogramming [link] [comments]


2019.11.02 13:47 kwalk2 Adding mouselistener to item in list to update panels

first of all, I'm aware of the title being a a bit ambiguous, so I'm going to try to explain the issues I'm having more clearly.
I've created a program that imports data from csv.files, which consists of measure points like date, time, heart rate etc. The user is first met with a login screen, that connects to a database, which then lets the user get access to the mainframe of the program.
The program consists of a class called Activity, which has a method that reads the activity, along with some other methods. This class then gets impemented by another class called Datapoint, which splits the different values from the csv.files into measuring points like date, time, longitude and latitude.
Finally, the third class that only consists of data is called Statistics, which takes the values and adds them into datapoints such as average, min and max speed etc.
Now to my problem. I've created a GUI for this which let's the user import csv.files, and then add the datapoints from the file into a map, a plotted diagram, and a page which shows the values from the statistics class. This works fine, and everything is updated when imported.
The activities chosen are then being added to a JList, from where the user can chose a certain activity, which preferrably a mouselistener. When the activity in the list is double-clicked, the graphs should update with the chosen activity's datapoints from the list, but I don't know how to do it. I'm pretty sure the duplicate import has something to do with the list in the importActionListener() method, but I can't wrap my head around why
The other issue is that the imported activity writes over the old one, so that the JList contains a duplicate of the activities imported.
Instead of just showing the GUI, I figured I'd provide you with all the information regarding the classes that the GUI handles, so it's easier for you to pinpoint how I should solve my problem. I'll post the Classes below.
Activity:
package model; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Activity { private String file; private String title; private String location; private String note; private String activityType; private String category; private List dataPoints = new ArrayList(); private String line = ""; //private String[] dataPoints; public Activity (){ //csvFileReader("activity_103378385.csv"); } public void csvFileReader(String file) { try { this.file = file; BufferedReader in = new BufferedReader(new FileReader(file)); line = in.readLine(); // läser bort första raden av aktiviteten while ((line = in.readLine()) != null) { line = line.replaceAll(",", "."); String[] data = line.split(";"); dataPoints.add(new DataPoint(data)); } in.close(); /* for (DataPoint act : dataPoints) System.out.println(act); */ } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } public List getData() { return dataPoints; } public void clear() { dataPoints.clear(); } public String getTitle() { return title; } public String getLocation() { return location; } public String getNote() { return note; } public String getActivityType() { return activityType; } public String getCategory() { return category; } @Override public String toString(){ return file.substring(file.lastIndexOf("\\")+1, file.length()-4); } } 
And the GUI (where I'm facing the difficulties):
package view; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Observable; import java.util.Vector; import javax.swing.*; import dao.UserDAO; import db.DemoDB; import model.Activity; import model.DataPoint; import model.Statistics; public class LoginGUI extends JFrame{ DemoDB DemoDBSingleton = null; JScrollPane scrollpane; private JTabbedPane tabbedPane = new JTabbedPane(); UserDAO userDao = new UserDAO(); JFrame mainFrame = new JFrame("Välkommen till din app"); JFrame f = new JFrame("User Login"); JLabel l = new JLabel("Användarnamn:"); JLabel l1 = new JLabel("Lösenord:"); JTextField textfieldUsername = new JTextField(10); JPasswordField textfieldPassword = new JPasswordField(10); JButton loginButton = new JButton("Logga In"); JFileChooser fc = new JFileChooser(); JMenuBar mb = new JMenuBar(); JFrame jf; JMenu menu; JMenuItem importMenu, exitMenu; JList listAct = new JList(); List activityList = new ArrayList(); //MyController controller = new MyController(); Activity activity = new Activity(); List listOfDataPoints = activity.getData(); Statistics stats = new Statistics(listOfDataPoints); public LoginGUI() throws IOException { loginButton.addActionListener(n -> { try { ListenerLogIn(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }); DemoDBSingleton = DemoDB.getInstance(); // logInframe(); } private JFrame ProgramMainFrame() throws IOException { mainFrame.setSize(800, 600); mainFrame.setVisible(true); mainFrame.setJMenuBar(mb); mainFrame.getContentPane().setLayout(new BorderLayout()); mainFrame.getContentPane().add(tabbedPane, BorderLayout.CENTER); JMenuBar mb = new JMenuBar(); menu = new JMenu("Meny"); importMenu = new JMenuItem("Importera aktivitet"); importMenu.addActionListener(importActionListener); exitMenu = new JMenuItem("Avsluta program"); exitMenu.addActionListener(exitActionListener); menu.add(importMenu); menu.add(exitMenu); mb.add(menu); mainFrame.setJMenuBar(mb); return mainFrame; /* * JPanel listholder = new JPanel(); * listholder.setBorder(BorderFactory.createTitledBorder("ListPanel")); * mainFrame.add(listholder); listholder.setVisible(true); * listholder.setSize(500,400); */ } private JPanel createViewActPanel() { JPanel analogM = new JPanel(new BorderLayout()); analogM.setBackground(new Color(224, 255, 255)); scrollpane = new JScrollPane(listAct); scrollpane.setPreferredSize(new Dimension(400, 200)); analogM.add(scrollpane, BorderLayout.WEST); return analogM; } private JPanel createViewDiagramPanel() { JPanel panel = new JPanel(new GridLayout(4, 1)); if( activity.getData().size() > 0) { panel.add(new PlotView("HR", activity, tp -> tp.getHeartRate())); panel.add(new PlotView("Altitude", activity, tp -> tp.getAltitude())); panel.add(new PlotView("Speed", activity, tp -> tp.getSpeed())); panel.add(new PlotView("Cadence", activity, tp -> tp.getCadence())); panel.setVisible(true); } return panel; } private JPanel createViewStatisticsPanel() { stats.calculateStatistics(); JPanel statPanel = new JPanel(new GridLayout(2, 3)); statPanel.setPreferredSize(new Dimension(1000, 500)); // statPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2)); JPanel timePanel = new JPanel(); timePanel.setBorder(BorderFactory.createTitledBorder("Tid/Distans")); timePanel.setBackground(new Color(224, 255, 255)); JTextArea tdp = new JTextArea("\n Starttid: " + stats.getStartTime() + "\n Slutlig tid: " + stats.getEndTime() + "\n Total tid: " + stats.getTotalTime() + "\n Total distans" + stats.getTotalDistance()); tdp.setBackground(new Color(224, 255, 255)); timePanel.add(tdp); statPanel.add(timePanel); JPanel startTimepanel = new JPanel(); startTimepanel.setBorder(BorderFactory.createTitledBorder("Altitud")); startTimepanel.setBackground(new Color(224, 255, 255)); JTextArea stp = new JTextArea("\n Lägsta altitud: " + stats.getMinAltitude() + "\n Högsta altitud : " + stats.getMaxAltitude() + "\n Genomsnittlig altitud: " + stats.getAvgAltitude()); stp.setBackground(new Color(224, 255, 255)); startTimepanel.add(stp); statPanel.add(startTimepanel); JPanel startTimepanel1 = new JPanel(); startTimepanel1.setBorder(BorderFactory.createTitledBorder("Hastighet")); startTimepanel1.setBackground(new Color(224, 255, 255)); JTextArea stp1 = new JTextArea("\n Lägsta hastighet: " + stats.getMinSpeed() + "\n Högsta hastighet : " + stats.getMaxSpeed() + "\n Genomsnittlig hastighet: " + stats.getAvgSpeed()); stp1.setBackground(new Color(224, 255, 255)); startTimepanel1.add(stp1); statPanel.add(startTimepanel1); JPanel startTimepanel2 = new JPanel(); startTimepanel2.setBorder(BorderFactory.createTitledBorder("Puls")); startTimepanel2.setBackground(new Color(224, 255, 255)); JTextArea stp2 = new JTextArea("\n Lägsta puls: " + stats.getMinHeartrate() + "\n Högsta puls : " + stats.getMaxHeartrate() + "\n Genomsnittlig puls: " + stats.getAvgHeartrate()); stp2.setBackground(new Color(224, 255, 255)); startTimepanel2.add(stp2); statPanel.add(startTimepanel2); JPanel startTimepanel3 = new JPanel(); startTimepanel3.setBorder(BorderFactory.createTitledBorder("Kadens")); startTimepanel3.setBackground(new Color(224, 255, 255)); JTextArea stp3 = new JTextArea("\n Lägsta kadens: " + stats.getMinCandence() + "\n Högsta kadens : " + stats.getMaxCandence() + "\n Genomsnittlig kadens: " + stats.getAvgCandence()); stp3.setBackground(new Color(224, 255, 255)); startTimepanel3.add(stp3); statPanel.add(startTimepanel3); JPanel startTimepanel4 = new JPanel(); startTimepanel4.setBorder(BorderFactory.createTitledBorder("Lutning")); startTimepanel4.setBackground(new Color(224, 255, 255)); JTextArea stp4 = new JTextArea("\n Lägsta lutning: " + stats.getMinTilt() + "\n Högsta lutning : " + stats.getMaxTilt() + "\n Genomsnittlig lutning: " + stats.getAvgTilt()); stp4.setBackground(new Color(224, 255, 255)); startTimepanel4.add(stp4); statPanel.add(startTimepanel4); return statPanel; } private JPanel createViewMapPanel() { JPanel mapPane = new JPanel(); if(listOfDataPoints.size() > 0) { mapPane.add(new PlotMap(listOfDataPoints)); } mapPane.setBackground(new Color(224, 255, 255)); mapPane.setVisible(true); return mapPane; } ActionListener importActionListener = new ActionListener() { @Override public void actionPerformed(ActionEvent e) { int returnValue = fc.showOpenDialog(mainFrame); if(returnValue == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); if(file != null) { activity.clear(); String fileName = file.getAbsolutePath(); activity.csvFileReader(fileName); listOfDataPoints = activity.getData(); activityList.add(activity); listAct.setListData(new Vector(activityList)); tabbedPane.removeAll(); tabbedPane.add("Dina Aktiviteter", createViewActPanel()); tabbedPane.add("Diagram för vald aktivitet", createViewDiagramPanel()); tabbedPane.add("Statistik för vald aktivitet", createViewStatisticsPanel()); tabbedPane.add("Kartbild över vald aktivitet", createViewMapPanel()); mainFrame.getContentPane().add(tabbedPane, BorderLayout.CENTER); } } } }; ActionListener exitActionListener = new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.exit(0); } }; public static void main(String[] args) throws IOException { new LoginGUI(); } 
}
submitted by kwalk2 to learnprogramming [link] [comments]


Speed Dating  Truth or Drink  Cut - YouTube Speed Dating (Classroom Conversations) Introduction - YouTube 12 vs 1: Speed Dating 12 Musicians Without Seeing Them ... SIDEMEN SPEED DATING - YouTube 10 vs 1: Speed Dating 10 Girls Without Seeing Them - YouTube Lela's Lounge Speed Dating - YouTube Speed Dating 9 Guys Using 5 Senses - YouTube HurryDate's Tips and Advice on How to Succeed at Speed Dating Speed Dating  Award-Winning Comedy Short  Isaac Feder ...

Variant på speeddating

  1. Speed Dating Truth or Drink Cut - YouTube
  2. Speed Dating (Classroom Conversations) Introduction - YouTube
  3. 12 vs 1: Speed Dating 12 Musicians Without Seeing Them ...
  4. SIDEMEN SPEED DATING - YouTube
  5. 10 vs 1: Speed Dating 10 Girls Without Seeing Them - YouTube
  6. Lela's Lounge Speed Dating - YouTube
  7. Speed Dating 9 Guys Using 5 Senses - YouTube
  8. HurryDate's Tips and Advice on How to Succeed at Speed Dating
  9. Speed Dating Award-Winning Comedy Short Isaac Feder ...
  10. ralfydotcom - YouTube

Follow us on INSTAGRAM: https://www.instagram.com/jubileemedia/ Phil: https://www.instagram.com/ppphhhiiillliiippp/ Ien: https://www.instagram.com/ienthekore... Learn the what, why and how of conversation-based learning in an ESL classroom. Thanks to your incredible support, our latest humangood collection is SOLD OUT! Follow humangood on Instagram and keep an eye out for our next drop: https://... 👉🏻 Subscribe to our 2nd Channel: https://www.youtube.com/MoreSidemen 👈🏻 👕: Sidemen Clothing: http://www.sidemenclothing.com 📸: Sidemen Instagram ... SUBSCRIBE for more! 👉http://bit.ly/SUBSCRIBEjubilee 👈 Watch more Versus 1: http://bit.ly/WatchVersus1 For brands wanting to partner with us, email: [email protected] stuff about whiskies and other spirits from around the World This is an educational video about speed dating shot for Oxford University Press for a video textbook! Sign up for a speed dating party at http://www.HurryDa... Sponsor this series: http://www.cut.com/sponsorship Buy Truth or Drink: The Card Game - http://www.playtruthordrink.com/ SUBSCRIBE: http://bit.ly/CutSubscrib... A speed-dating newbie encounters a series of comically incompatible women before making a connection. Stay on this channel to watch more great short films or... Looking for something to do on a Thursday evening? Are you Young, Black and single age 21-29? Tired of the same ol' clubs and faces? Looking to meet and inte...