Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 12:32 AM |
you can't resize it and it makes anything with HTML5 look like barf well you can resize it but it doesn't expand everything and I will probably use the most inefficient way ever to make that work
one class file
but let me try to describe ROBLOX.com for you a white box with 2 blue bars and a ton of buttons
a lot of empty boxes with a lot of values
and complaints that you need JavaScript to run this page everywhere
"Sign up and start having fun! Log in and start having fun! .male {background-image: url (some roblox domain); etc. etc. etc."
but yes now I have a personal, ROBLOX Player inspired crappy internet browser that doesn't work
oh god it's even worse on google
should I share source code or no
took 40 minutes to write and figure out how all this JFrame stuff works only in Comp Sci A and we don't cover this sort of thing in the first semester |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 12:35 AM |
why again did i download this
5IfC37P |
|
|
| Report Abuse |
|
|
Inductive
|
  |
| Joined: 28 May 2012 |
| Total Posts: 6480 |
|
| |
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 12:38 AM |
Game: ROBLOX Point Developer: StarMarine614 WHAT IS ROBLOX? ROBLOX is the best place to Imagine with Friends?. With the largest user-generated online gaming platform, and over 15 million games created by users, it is the #1 gaming site for kids and teens?. Every day, virtual explorers come to ROBLOX to create adventures, play games, role play, and learn with their friends in a family friendly, immersive, 3D, environment. |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 12:47 AM |
TODO:
> Multiple tabs > Icon for the executable JAR > Maybe create a launcher for Win32/OSX/Linux (Debian and Ubuntu)? > create a default home page in HTML > create anti-phishing module, warns you when you input a new page that it is going to a different domain, then create an option to disable it > make it not crap > Fix the resizing thing
good news is that since I got the display methods crammed into one class I can just clone it to make new tabs
I just need a way to visualize that
all without WebKit :) |
|
|
| Report Abuse |
|
|
Inductive
|
  |
| Joined: 28 May 2012 |
| Total Posts: 6480 |
|
|
| 21 Jan 2016 12:47 AM |
| Har, it's perfect as it stands. Don't change anything. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 01:05 AM |
| It looks like that because the css isn't loading |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 01:06 AM |
yeah, the only thing I have is just loading the page
nothing more
no CSS loading
no hyperlinks
nothing
|
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 01:11 AM |
What should I add first? Tabs, fix the resize thing?
I want to actually make it functional last |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 01:18 AM |
Changing the error message to
... catch(Exception exception) { System.out.println("An unexpected error has occurred and Knight Discoverer needs to quit. We're sorry!"); }
|
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 01:20 AM |
| Aka message of death everyone will hate when their browser crashes |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
| |
|
|
| 21 Jan 2016 08:45 AM |
| u only made an application that just downloads a html page and then shows the source? or am I getting something wrong |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 21 Jan 2016 08:46 AM |
| no, it's trying to render it but somehow I screwed something up and it shows that instead |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
| |
|
| |
|
| |
|
Zach1102
|
  |
| Joined: 20 Aug 2010 |
| Total Posts: 48576 |
|
|
| 23 Jan 2016 09:26 PM |
This is pretty amazing considering it's one guy coding this for barely an hour, while most browsers take months to develop with entire teams.
You could make this a git hub project. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2016 09:27 PM |
Sounds to me like you just implemented WebView and are just overriding internal events trying to customize stuff you shouldn't be changing.
Also what happened to that Game Engine? Sheesh you're worse than me when it comes to staying on one project (and that's saying something).
|
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 23 Jan 2016 09:31 PM |
Actually no, I just implemented the viewing methods for JEditorPanes (which support HTML3.1) and added some crap to handle newer HTML features to it, most importantly video support, but that's it for now.
that didn't turn out well and I'm switching to JavaFX's integrated WebKit engine instead.
As for that game engine, I'm still working on it but struggling figuring out how to implement an actual 3D renderer and not just borrow OGRE.
|
|
|
| Report Abuse |
|
|
|
| 23 Jan 2016 09:33 PM |
You don't just implement one.
Rendering APIs are just that: APIs. You are screwed if you have never done this before or aren't getting educated in it.
|
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 23 Jan 2016 09:39 PM |
I don't know i'm starting to say dumb stuff
I fell asleep after taking the SAT ~5 hours ago just woke up, and trying to edit this without falling back asleep
I cut out some code that wasn't important but here's what I did
<...>
import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.event.HyperlinkEvent; import javax.swing.event.HyperlinkListener;
//-- Import JavaFX here, require Java 7u56 in order to run.
@SuppressWarnings("serial") public class Discoverer extends JFrame { private TextField field = new TextField(); private JEditorPane display = new JEditorPane(); private JScrollPane scrollPane = new JScrollPane(display); public static void main(String[] args) { Discoverer file = new Discoverer(); file.frameHandler(); }
public void frameHandler() { setTitle("Knight Discoverer build 4"); setSize(currentWidth, currentHeight); //sets size to whatever the two fields are setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); display.setEditable(false); //fix resizing later setLayout(null); setLocationRelativeTo(null); addComponentsToFrame(getContentPane()); } private void loadData(String text) { try { //need to make sure we're not inputting a bad site, fix later if (text.contains("http://")) { String newText = text.substring(7); display.setPage(text); field.setText(newText); } else if (text.contains("https://")) { String newText = text.substring(8); display.setPage(text); field.setText(newText + " [HTTPS Secure]"); } else { display.setPage("http://" + text); field.setText(text); } } catch(Exception exception) { System.out.println("Discoverer was unable to find the page!"); } } |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 23 Jan 2016 10:16 PM |
actually you know what
why don't I spend the 400 hours writing my own engine
i'm kind of uhhhh uncertain as how JavaFX works legally? do I have to release the whole thing under the LGPL if I integrate it?
and how can I compress the browser into one class file? |
|
|
| Report Abuse |
|
|
Harbynger
|
  |
| Joined: 06 Jul 2008 |
| Total Posts: 34677 |
|
|
| 23 Jan 2016 10:26 PM |
yeah throwing out WebKit and creating my own browser engine
probably going to be 200x worse but eh no need to worry about LGPL and copyright this and that and This video has been taken down because of a copyright claim by SME. We're sorry!
|
|
|
| Report Abuse |
|
|
|
| 23 Jan 2016 10:29 PM |
this thread makes no sense to me
|
|
|
| Report Abuse |
|
|