Jump to content

Botre

Members
  • Posts

    5883
  • Joined

  • Last visited

  • Days Won

    18
  • Feedback

    100%

Everything posted by Botre

  1. Parks and recreation, started binge-watching a month ago, just finished the whole series. I'm sad now that I know I probably won't get to "hang out" with those character anymore. Go watch it if you haven't, I really enjoyed it!
  2. 1055
  3. 1051
  4. 1049
  5. 1047
  6. Derped.
  7. Making that part throw an exception will make any OS that doesn't support system trays crash :x Mhm not sure, why not though ?
  8. (fetched from an old 2D game API of mine) package game_context; import java.awt.AWTException; import java.awt.SystemTray; import java.awt.TrayIcon; /** * @author Bjorn Krols (Botre) */ public class SystemTrayManager { private static SystemTrayManager instance = new SystemTrayManager(); private boolean supported; private SystemTray tray; private SystemTrayManager() { supported = SystemTray.isSupported(); if (!supported) return; setTray(SystemTray.getSystemTray()); } public static SystemTrayManager getInstance() { return instance == null ? instance = new SystemTrayManager() : instance; } private SystemTray getTray() { return supported ? tray : null; } private void setTray(SystemTray tray) { if (!supported) return; this.tray = tray; } public void setIcon(TrayIcon icon) { if (!supported) return; try { getTray().add(icon); } catch (AWTException e) { e.printStackTrace(); } } }
  9. 1045
  10. 1043
  11. 1041
  12. 1036
  13. We've teached you well.
  14. Yo, guys please take a look at the title. This thread is for me, don't come here scavenging shamelessly for free postcount please. Thank you, sincerely, Botre
  15. Enjoy your trip man : )
  16. Gone.
  17. Fixed lel, that looked gross.
  18. The concatenate method is mine. The reverse method not, who seriously credits stackoverflow code though ? Oo
  19. Could the scripting section get its own section instead of having to share one with programming? Its subsections aren't easy to find. As it is, the graphics section is more clear and easy to navigate. Propositions: Split scripting and programming into two separate sections. Give the new scripting section the following subsections: Scripting Tutorials Snippets Projects Help desk The way it's currently structured is really uninviting and impractical imo. Cheers. Credits to my #RaketBro @Czar for bringing it up, most of this was his idea.
  20. Botre

    Array shuffling

    They all do the same, not going to copy and paste the explanation 10 times every time I feel like changing / completing / detailing the description
  21. Ok so the class implementing Activity isn't supposed to perform any looping right?
×
×
  • Create New...