johnMamish / EEPROMProgrammer

Java GUI to interface with a PIC32 microcontroller via RS-232 to program an EEPROM chip.
0 stars 0 forks source link

Hex viewer #1

Open johnMamish opened 11 years ago

johnMamish commented 11 years ago

The main window consists of 2 things, a menu bar at the top, and a large window containing a read-only hexadecimal dump of the EEPROM's memory. Looking for something like this:

//johnMamish doesn't know crap about awt, so zpolygon95 should
//correct this code for him to make it awt complient
Class HexDumpViewer extends JPanel
{
    private string data;     //could be byte[], too.  Actually, byte[] might be better.

    //other vars, methods

    //adds to string data and updates view
    public void appendData(string append);

    //completely overwrites string data.
    public void writeData(string newData);

    //readjusts memory range
    public void(int min, int max);
}
johnMamish commented 11 years ago

@zpolygon95 I would personally suggest using Swing over awt, but you know java better than I do. Maybe there's a way to have the menu bar in swing and the Hex Viewer in awt... I don't know

zpolygon95 commented 11 years ago

You misunderstand, I want to do the hex viewer with custom drawing functions on a JPanel (which is swing), and everything else with regular swing. I just meant I didn't want to use a swing text field to display that stuff.

On Sun, Dec 23, 2012 at 1:58 AM, johnMamish notifications@github.comwrote:

@zpolygon95 https://github.com/zpolygon95 I would personally suggest using Swing over awt, but you know java better than I do. Maybe there's a way to have the menu bar in swing and the Hex Viewer in awt... I don't know

— Reply to this email directly or view it on GitHubhttps://github.com/johnMamish/EEPROMProgrammer/issues/1#issuecomment-11643594.

johnMamish commented 11 years ago

OH! Cool. Doing it in a JPanel is what I was thinking.

Please make a seperate branch when you start on this. Just sayin.