Giter VIP home page Giter VIP logo

Comments (5)

vincenzopalazzo avatar vincenzopalazzo commented on August 31, 2024

Hello @dis0hope,
The latest version of the jar has been added by me, on my demo no problem, see you too (both disabled and enabled)
bugfunzionante

Continue to give problems you can post a screen or describe the problem in more detail? (both fantastic old things)

from material-ui-swing.

Xiaorui-Huang avatar Xiaorui-Huang commented on August 31, 2024

sorry for being so vague.

the problem i ran into is actually using jTables...
So a wanted to have wrap lines for each cell in the table, cause some of them contains a lot of text and can't be shown. so i google and find some code that rendered each cell as a TexArea. wrap lines did work, but the nice jTable UI from you guys was gone.

just jtable Like the programme name can't be shown

line wrap after using wrap lines with each cell being a Text Area. the UI is Just weird now.
(only String fields are changed to text Area, so the integer cell is still material design.

i think its kinda unreasonable to ask you guys to redo textArea UI so it will look like JTable...
So you can probably close this issue, this is just to clear thing up.
the wrap line code is here: https://stackoverflow.com/questions/965023/how-to-wrap-lines-in-a-jtable-cell

from material-ui-swing.

atarw avatar atarw commented on August 31, 2024

If I understand you correctly is it the color of the TextArea that isn't correct? Because that can be changed.

If it's something else, you can try creating your own TableCellRenderer class that extends MaterialTableCellRenderer and overrides getTableCellRendererComponent().

The new implementation can then call the super class's getTableCellRendererComponent() within itself, so this way you get the behaviour of the material cell renderer in addition to whatever custom behaviour you want

from material-ui-swing.

Xiaorui-Huang avatar Xiaorui-Huang commented on August 31, 2024

@atarw
s
Yeah, basically it looks incoherent. and it loses some original jtable setting, like selecting a row will change the colour of the whole row. and im not sure how to do that with an extended text area class.

while extending MaterialTableCellRenderer doesn't support
this.setWrapStyleWord(true);
this.setLineWrap(true);
so im back where i started where i want to do wrap lines....
but its fine i'll chose good looking ui over wrap lines...

from material-ui-swing.

atarw avatar atarw commented on August 31, 2024

Oh okay I understand now. I could try to make MaterialTableCellRenderer extend from JTextArea instead but I'll need to do a bit more testing in the morning.

For now since MaterialTableCellRenderer indirectly extends from JLabel you can try wrapping words in the JLabel as a work around.

from material-ui-swing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.