NI Server Browser - Printable Version +- NordInvasion Forum (https://forum.nordinvasion.com) +-- Forum: Discussions (https://forum.nordinvasion.com/forumdisplay.php?fid=7) +--- Forum: Community Projects (https://forum.nordinvasion.com/forumdisplay.php?fid=19) +--- Thread: NI Server Browser (/showthread.php?tid=34177) |
Re: NI Server Browser - Jalau - 07-01-2015 (07-01-2015, 12:58 AM)Bearstronaut link Wrote:Interesting. Thanks.No problem. Re: NI Server Browser - human_being - 07-01-2015 Awesome! Re: NI Server Browser - Jalau - 07-01-2015 (07-01-2015, 03:21 PM)human_being link Wrote:Awesome!Thanks mate! Re: NI Server Browser - Deerpig - 07-01-2015 Awesome stuff, will definitely use! Thanks for all the hard work. Re: NI Server Browser - Jalau - 07-01-2015 (07-01-2015, 04:36 PM)Deerpig link Wrote:Awesome stuff, will definitely use! Thanks for all the hard work.No problem man Re: NI Server Browser - Priest - 07-01-2015 Good work . Thank you Re: NI Server Browser - Malong - 07-01-2015 (06-01-2015, 11:44 PM)Jalau link Wrote:So you want me to use methods to parse XML instead of just splitting the text?You don't have to, but you treat the xml as text instead of xml, which Java has a built in API to handle. You can translate it to an object model and read the elements. If you ever need more elements from the future out of the xml, this makes it more extensible too. JAXP gives some interfaces for this. (06-01-2015, 11:44 PM)Jalau link Wrote:For the updateServerData part, I don't know exactly what you mean. Could you maybe explain that part again?Yeah that was unclear, sorry. I meant this block below. I think you can return the name of the selected frame and perform a string compare to the data.getName, rather than check every single combination for a mismatch. Code: + if (data.getName().contains("EU") && !SettingsFrame.eu.isSelected()) Re: NI Server Browser - Jalau - 07-01-2015 (07-01-2015, 05:09 PM)Priest link Wrote:Good work . Thank you No problem. (07-01-2015, 05:44 PM)Malong link Wrote:[/quote] |