Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Simple Text Editor

java

  • Please log in to reply
31 replies to this topic

#25 lespauled

lespauled

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1360 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash

Posted 10 April 2013 - 06:43 AM

...

Sorry, I'm a large font/120 dpi user on most machines, Win7 Large/144 on my IPS rig. Software that's unaware of these annoys the devil out of me -- it's part of why I won't use most java based applets that have anything to do with text content.

...

 

Wow.  How big is your monitor?


  • 0
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth

#26 JasonKnight

JasonKnight

    CC Addict

  • Senior Member
  • PipPipPipPipPip
  • 312 posts
  • Location:Keene, NH
  • Programming Language:C, C++, JavaScript, Delphi/Object Pascal, Pascal, Assembly, Others

Posted 10 April 2013 - 08:29 AM

Wow.  How big is your monitor?

On my workstation, that's Monitor[b]s[/]... plural. I've got a pair of 24" 1920x1200 in the wings (running off a spare GTS 250 I had) and center is a 27" 2560x1440 IPS.

At a comfortable seating distance (3 to 4 feet) the default fonts in most OS are too small -- though I started out using large fonts/120 dpi back on Windows 3.1 (well, back then it was called 8514 fonts) as a way to have smoother fonts -- on monitors most people would run 800x600 I ran 1024x768 with large fonts; fonts ended up the same size between the two.

My Media center I've got running Win7's "extra large" -- 200%/196 dpi.

Most native windows applications have no issues and auto-expand just fine. Well written websites will pick it up from the browser settings... but Java programs? Universally they're useless -- sure on things like editors you can usually change the size in the edit box, but that doesn't fix the uselessly tiny menus and dialogs.

Swing in particular tends to be bad for this... well on top of Swing applets just generally sucking in the first place -- Though it plagues just about everything written in Java. See "Sublime" and "Eclipse" -- both of which are pretty much useless to me.

Edited by JasonKnight, 10 April 2013 - 08:30 AM.

  • 0
The only thing about Dreamweaver that can be considered professional grade tools are the people promoting it's use.

#27 sagar92

sagar92

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 05 August 2013 - 09:55 AM

FileReader r = new FileReader(fileName);
            area.read(r,null);
            r.close();
            currentFile = fileName;

 

 

 

i didnt understand this part of the code specially

area.read(r,null);

 

i am not understanding which methods were used here..........

 

 


  • 0

#28 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 05 August 2013 - 10:29 PM

FileReader r = new FileReader(fileName);
            area.read(r,null);
            r.close();
            currentFile = fileName;

 

 

 

i didnt understand this part of the code specially

area.read(r,null);

 

i am not understanding which methods were used here..........

Good praxis is to always read java doc about certain methods and such.

http://docs.oracle.c...va.lang.Object)

Hope that clears up a bit.


  • 0

#29 SelsoLiberado

SelsoLiberado

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 29 July 2014 - 05:23 AM

Thank you !

I was not searching any tutorial, but a simple editor in Java for testing UIM.

May you add for dummies how we generate with Javac.

Even if the code is simple enough to justify GUI designing by coding, it would be could to introduce a GUI designer like JForm designer or any other standalone designer.


  • 0

#30 jpbeat

jpbeat

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 30 April 2015 - 09:10 PM

hey, love the tutorial, but just one thing. is it just me or did you never define New (nevermind.)


Edited by jpbeat, 30 April 2015 - 09:15 PM.

  • 0

#31 charlesdavis

charlesdavis

    CC Regular

  • Member
  • PipPipPip
  • 34 posts
  • Location:Noida
  • Programming Language:C, C++, C#, PHP, PL/SQL, Visual Basic .NET
  • Learning:Assembly, Fortran, Prolog

Posted 01 May 2015 - 09:34 PM

It is text editor problem nothing else..If you only try the notepad text editor then it will also having the option for increase and decrease size....Please uninstalled your editor once then again Installed properly..I am sure it will work fine..


  • 0

#32 fredebt

fredebt

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 05 January 2016 - 09:55 AM

Thanks, great  :thumbup1:


  • 0





Also tagged with one or more of these keywords: java