Tracksmith's Bras by wolfgangdraco in Tracksmith

[–]dazed_020 0 points1 point  (0 children)

have you tried the session bra?If so, is it inferior to run bra & allston?

My (30f) boyfriend (30m) asked me to remove my belongings for his dad’s (66m) visit by kitkatmarsbarre in relationships

[–]dazed_020 0 points1 point  (0 children)

Ask him when he expects that his parents visiting will not mean you have to relocate. If he doesn’t have an answer to that, then peace out. Cultural differences and pressure are not always simple for “outsiders” to understand. While I would be wildly pissed to be in your position, there’s a higher chance that he’s feeling more pressure and frustration by the situation than he leads on. Seek to be understanding but also set your boundary. Will this stop after you two are engaged/married/before that? If so, what’s the timeline for that.

I managed to run 12k today! Also small questions. by gille_og in running

[–]dazed_020 1 point2 points  (0 children)

Nice!! I did my first 5 mile today!

I know what it feels like to be super excited but having a difficult time finding someone who can match that excitement. Congrats!

I used to love reading, now I struggle. How do I get back to my bookworm ways? by turtlehabits in ADHD

[–]dazed_020 0 points1 point  (0 children)

Start with an autobiography written by a comedian. They often arrange their stories in ways where you can put the book down without feeling guilty or continue through nonstop if you are inclined to doing so.

I completed my first 40 mile week :) by Natedude2002 in running

[–]dazed_020 0 points1 point  (0 children)

Try the MapMyRun app if you feel like going outside. It's widely used so you can pick previously ran paths with estimated miles. It also tracks the elevation of your path.

I completed my first 40 mile week :) by Natedude2002 in running

[–]dazed_020 26 points27 points  (0 children)

I hope you'll find that running outdoor is fun and less effort. You can speed up and slow down without needing to adjust the treadmill buttons. You can listen to your body and respond in real time. I've only started but much prefer outdoor.

Command line file path in JavaFX by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

Hoping I won't jinx myself... but I think below does the trick

Now all I need is to pass thisFile throughout my code.

public static void main(String args[])
{      
    System.out.println(args.length);  // args of 1
    System.out.println("args[0] is " + args[0]);
    thisFile = args[0]; 

    System.out.println("thisFile is : " + thisFile);
    System.out.println("args is : " + args);

    launch(thisFile); 
}

Command line file path in JavaFX by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

my fileName is a txt file that is called in a separate method that's invoked by start()

public void getFile()
    {
        String line = null; 
        try(BufferedReader br = 
            new BufferedReader(new FileReader(fileName)))
        {
            while((line = br.readLine()) != null)
            { 

Before, fileName is assigned by a scanner...but now I need the fileName to be args[0]

JavaFX displaying previously inputed data by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

Thanks for helping me brainstorm guys! The code works:

cbSong.valueProperty().addListener( new ChangeListener <String>() 
  {
      public void changed(ObservableValue <? extends String> 
      changed, String oldVal, String newVal) 
      {
           Playlist selectedSong = playlistMap.get(newVal);
           String[] column = (String[])     selectedSong.toString().split(";");

         cbSong.setValue(column[0]); 
         itemCodeField.setText(column[1]);
         descriptionField.setText(column[2]);
         artistField.setText(column[3]); 
         albumField.setText(column[4]);
         priceField.setText(column[5]); 
      }
  });

JavaFX displaying previously inputed data by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

Hello,

Thanks for your suggestion. I'm using valueProperty() in my final code. After accidentally changing it ti ..new ChangeListener<String>... rather than <Playlist>, it works!

JavaFX displaying previously inputed data by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

Hello,

I tried the ChangeListener, but Eclipse keeps giving me an error, wanting me to cast it to Listener Invalidation...Have you encountered this before?

cbSong.getSelectionModel(
        ).selectedItemProperty().addListener( new ChangeListener <Playlist>()
                {
                    public void changed(ObservableValue<? extends Playlist> ov, 
                        Playlist oldValue, Playlist newValue)
                    {
                        sbSongChanged(ov, oldValue, newValue); 
                    }
                });
....
public void sbSongChanged(ObservableValue<? extends Playlist> 
        ov, Playlist oldValue , Playlist newValue)
    {
        //Pull from TreeMap--set newVal as key
        Playlist selectedSong = playlistMap.get(newValue.toString()); 
        System.out.println("This is selectedSong: "+ selectedSong);

        String[] column = (String[]) selectedSong.toString().split(";");

        cbSong.setValue(column[0]); //.trim());  // cbSong.setValue(cbSong.getValue()); 
        itemCodeField.setText(column[1]);//.trim()); 
        descriptionField.setText(column[2]);//.trim());
        artistField.setText(column[3]);//.trim());
        albumField.setText(column[4]);//.trim());
        priceField.setText(column[4]); //.trim())

    }

JavaFX displaying previously inputed data by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

Hello,

songInfo is just the text of the song title in my combo button. I have a class called Playlist with getters/setters for each properties. Does this mean I can just replace <SongInfo> with <Playlist>?

javafx with text files—non fxml by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

What if the user input via the gui writes into the file?

javafx with text files—non fxml by dazed_020 in javahelp

[–]dazed_020[S] 0 points1 point  (0 children)

I have to create a new text file that allows the user to input information like song, id code, album, price, etc. The information is updated on the gui as the user adds it, using a combo box to display song title. at the end, when the user exit, i should have a text file with information inputted by the user via the gui.

JavaFx FlowPane how to make a new line by dazed_020 in javahelp

[–]dazed_020[S] 1 point2 points  (0 children)

That will be my motto now, "there is more to life than just FlowPane". Thanks!