greptilian logo

IRC log for #friendlyjava, 2015-04-27

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:45 Kyzz joined ##friendlyjava
01:48 Kyzz Anyone have some time to explain how classes work in Java?
01:58 pdurbin Kyzz: hi! I need to get to bed soon but maybe I can help a bit
01:58 Kyzz pdurbin: Alright, so I'm trying to finish this project I got behind on, and the structure is bothering me
01:59 Kyzz In Java, do classes get seperated into multiple files?
01:59 pdurbin yep
01:59 pdurbin one class per file, typically
01:59 Kyzz So, how could I go about splitting this up then?
01:59 Kyzz http://pastebin.com/K90P5uTD
01:59 Kyzz I need to have the gui (i'm doing that first)
01:59 Kyzz Then do the implementation
02:00 Kyzz ie: user inputs size of array and they fill each element then it runs
02:02 pdurbin hmm, I've never actually worked on a Swing project
02:02 pdurbin in Android you do use "inner" classes, which are in the same file a the main class
02:02 pdurbin so I'm already doubting what I said about one file per class :)
02:08 Kyzz This is my fourth one heh
02:08 pdurbin Kyzz: here's a nice minimal example: https://docs.oracle.com/javase/tutorial/displayCode.html?code=https://docs.oracle.com/javase/tutorial/uiswing/examples/learn/CelsiusConverterProject/src/learn/CelsiusConverterGUI.java
02:08 Kyzz They're pretty irritating (since I'm doing it all by hand) - apparently most people just do it by drag and drop
02:08 pdurbin via https://docs.oracle.com/javase/tutorial/uiswing/examples/learn/index.html
02:09 Kyzz Also....the book I have doesn't have syntax hilighting so thats depressing
02:11 pdurbin this one seems to have a inner class: https://docs.oracle.com/javase/tutorial/displayCode.html?code=https://docs.oracle.com/javase/tutorial/uiswing/examples/events/ListSelectionDemoProject/src/events/ListSelectionDemo.java
02:11 pdurbin via https://docs.oracle.com/javase/tutorial/uiswing/examples/events/index.html
02:37 usandfriends joined ##friendlyjava
03:50 Kyzz pdurbin: I find it irritating that I ALWAYS get "cannot find symbol errors"
04:37 Richard_2340985 joined ##friendlyjava
08:35 Kyzz joined ##friendlyjava
12:23 aditsu Kyzz: you could just use anonymous inner classes for your action handlers
12:23 pdurbin that's kind of what I was trying to say. but I don't really know what I'm talking about :)
12:25 pulsar anyone used jXLS?
12:27 mr_lou joined ##friendlyjava
12:28 aditsu pulsar: never heard of it
12:29 pulsar just re-evaluating my options, but i guess i will choose poi... again.
12:31 aditsu seems interesting
12:33 pulsar by far the most convenient api i have used to generate excel documents (and pdf files) was flexcel studio
12:33 pulsar c#/.net though
12:34 pulsar it could load an excel file and generate a sourcecode generating the loaded ... you get the idea.
12:34 pulsar code was quite readable and easy to adapt.
12:35 searchbot joined ##friendlyjava
12:45 aditsu hm, that shouldn't be too hard to do
12:45 aditsu with poi
13:58 mr_lou joined ##friendlyjava
19:18 stuntmania joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode